月下观星 2019-12-22 14:55 采纳率: 100%
浏览 182

Objective-c初学者正在尝试做一个天气管理系统,界面是出来了但是不知道怎么实现

//
// AppDelegate.m
// Objective-C Fianl Test
//
// Created by user on 19/11/24.
// Copyright © 2019年 user. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()
/** 城市编码输入框 /
@property (weak) IBOutlet NSTextField *cityCodeTextField;
/
* 状态文本框 /
@property (weak) IBOutlet NSTextField *statusLabel;
/
* 城市名称文本框 /
@property (weak) IBOutlet NSTextField *cityNameLabel;
/
* 省份名称文本框 /
@property (weak) IBOutlet NSTextField *provinceNameLabel;
/
* 更新时间文本框 /
@property (weak) IBOutlet NSTextField *updateTimeLabel;
/
* 湿度显示文本框 /
@property (weak) IBOutlet NSTextField *humidityLabel;
/
* 温度显示文本框 /
@property (weak) IBOutlet NSTextField *temperatureLabel;
/
* 空气质量显示文本框 /
@property (weak) IBOutlet NSTextField *qualityLabel;
/
* pm2.5显示文本框 /
@property (weak) IBOutlet NSTextField *pm25Label;
/
* pm10显示文本框 /
@property (weak) IBOutlet NSTextField *pm10Label;
/
* 预报显示文本框 /
@property (unsafe_unretained) IBOutlet NSTextView *forecastTextView;
/
* 搜索结果显示文本框 */
@property (unsafe_unretained) IBOutlet NSTextView *searchResultTextView;

@property (weak) IBOutlet NSWindow *window;
@end

@implementation AppDelegate

}

  • (IBAction)theMostHotDayAction:(id)sender { NSLog(@"点击了预报中最热的一天"); }
  • (IBAction)theMostColdDayAction:(id)sender {
    NSLog(@"点击了预报中最冷的一天");
    }

  • (IBAction)sunriseDayAction:(id)sender {
    NSLog(@"点击了预报中日出最早的一天");
    }

  • (IBAction)northWindDayAction:(id)sender {
    NSLog(@"点击了预报中北风的日子");
    }

  • (IBAction)fineDayAction:(id)sender {
    NSLog(@"点击了预报中晴天的日子");
    }

  • (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
    }

@end

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
    • ¥15 关于arduino编程toCharArray()函数的使用
    • ¥100 vc++混合CEF采用CLR方式编译报错
    • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
    • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
    • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
    • ¥50 如何openEuler 22.03上安装配置drbd
    • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
    • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
    • ¥15 Windows11, backspace, enter, space键失灵