代码拉取完成,页面将自动刷新
阿当局不哈了
小浣熊饼干
//
// AppDelegate.m
// weathercast
//
// Created by 刘鹏 on 2019/6/26.
// Copyright © 2019 刘鹏. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
我在这里该一行x h called
@interface AppDelegate ()
@end
@implementation AppDelegate
#pragma mark - Overridden (Life Cycle)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//创建ViewController
ViewController* viewController = [[ViewController alloc] init];
// 创建UINavigationController
UINavigationController* navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
// 设置导航栏样式
navigationController.navigationBar.barStyle = UIBarStyleDefault;
// 隐藏navigation控制器的Tool Bar 工具栏,默认YES
[navigationController setToolbarHidden:NO];
// 设置UINavigationController为rootViewController
self.window.rootViewController = navigationController;
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
宣宣
@end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。