月下观星 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 C语言用正向迭代,反向迭代解决问题
      • ¥15 想要卸载软件(maltab)但是在控制面板的程序和功能中没有要卸载的软件怎么办?
      • ¥15 关于sp验证的一些东西,求告知如何解决,
      • ¥20 关于#javascript#的问题:但是我写的只能接码数字和字符,帮我写一个解码JS问题
      • ¥15 prophet运行报错,如何解决?
      • ¥15 用GPU跑pytorch搭建的LSTM的时候出现了奇怪的报错
      • ¥20 前端数据是从session等作用域拿到的,如何取值继续传递后端呢
      • ¥15 eclipse无法正常运行
      • ¥15 定义了函数,但是无法根据函数定义触发器
      • ¥20 5变量卡诺图化简得出与非门电路图