资源简介
这个代码,我觉得作者写的还是很不错,代码也很规范,有很多好的方法在这里面值得我们学习,有感兴趣的可以下来看看,我自己觉得还是很不错。
代码片段和文件信息
//
// AppDelegate.m
// 新闻
//
// Created by user on 15/9/4.
// Copyright (c) 2015年 user. All rights reserved.
//
#import “AppDelegate.h“
#import “RootViewController.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UIApplication *app = [UIApplication sharedApplication];
app.statusBarstyle = UIStatusBarstyleLightContent;
// Override point for customization after application launch.
self.window=[[UIWindow alloc]initWithframe:[UIScreen mainScreen].bounds];
self.window.backgroundColor=[UIColor whiteColor];
[self.window makeKeyAndVisible];
//设置主窗口
RootViewController *rootV=[[RootViewController alloc]init];
self.window.rootViewController=rootV;
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 throttle down OpenGL ES frame rates. 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 inactive 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:.
}
//发生内存警告的时候
-(void)applicationDidReceiveMemoryWarning:(UIApplication *)application
{
//清楚内存中的图片
//停止下载图片
[[SDWebImageManager sharedManager] cancelAll];
//移除下载到内存中的图片
[[SDWebImageManager sharedManager].imageCache clearMemory];
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-23 10:45 news-master\
文件 6148 2016-05-23 10:45 news-master\.DS_Store
目录 0 2016-05-23 10:45 __MACOSX\
目录 0 2016-05-23 10:45 __MACOSX\news-master\
文件 120 2016-05-23 10:45 __MACOSX\news-master\._.DS_Store
文件 494 2015-12-06 18:37 news-master\.gitignore
文件 212 2015-12-06 18:37 __MACOSX\news-master\._.gitignore
文件 11358 2015-12-06 18:37 news-master\LICENSE
文件 212 2015-12-06 18:37 __MACOSX\news-master\._LICENSE
文件 1572 2015-12-06 18:37 news-master\README.md
文件 212 2015-12-06 18:37 __MACOSX\news-master\._README.md
目录 0 2016-05-23 10:44 news-master\鏂伴椈 2\
文件 6148 2016-05-23 10:45 news-master\鏂伴椈 2\.DS_Store
目录 0 2016-05-23 10:45 __MACOSX\news-master\鏂伴椈 2\
文件 212 2016-05-23 10:45 __MACOSX\news-master\鏂伴椈 2\._.DS_Store
目录 0 2016-05-23 10:44 news-master\鏂伴椈 2\.git\
目录 0 2015-09-04 15:16 news-master\鏂伴椈 2\.git\branches\
目录 0 2016-05-23 10:45 __MACOSX\news-master\鏂伴椈 2\.git\
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\._branches
文件 15 2015-09-04 15:16 news-master\鏂伴椈 2\.git\COMMIT_EDITMSG
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\._COMMIT_EDITMSG
文件 137 2015-09-04 15:16 news-master\鏂伴椈 2\.git\config
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\._config
文件 73 2015-09-04 15:16 news-master\鏂伴椈 2\.git\desc
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\._desc
文件 23 2015-09-04 15:16 news-master\鏂伴椈 2\.git\HEAD
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\._HEAD
目录 0 2016-05-23 10:44 news-master\鏂伴椈 2\.git\hooks\
文件 452 2015-09-04 15:16 news-master\鏂伴椈 2\.git\hooks\applypatch-msg.sample
目录 0 2016-05-23 10:45 __MACOSX\news-master\鏂伴椈 2\.git\hooks\
文件 212 2015-09-04 15:16 __MACOSX\news-master\鏂伴椈 2\.git\hooks\._applypatch-msg.sample
............此处省略7872个文件信息
相关资源
- location iOS免越狱修改定位13.5驱动 Lo
- AMIBCP_5.01.0014中文汉化版
- B250MKYLIN.bin
- MSI B250M MORTAR QL3X BIOS 已经测试
- cisco 三层 交换机 3560 IOS 文件
- 基于DE2-115通过NIOS ii 控制VGA
- Advanced Swift Updated for Swift 5 (2019 obj
- iOS Programming The Big Nerd Ranch Guide 6th E
- iOS 12 sketch最新2018设计资源
- 迪兰蓝宝石各类挖矿改BIOS合集
- unzip-c7200-js-mz.123-20.rar
- ios12.1 免越狱修改手机定位需连接电
- Location-cleaned IOS14.3驱动包
-
c2960-lanba
sek9-tar.150-2.SE2.tar - IOS应用逆向工程(第2版) 最新版 完
- e-hentai ios.ipa
- ios12.2版本最新驱动
- Xcode 12.2 (16E226/16E227) 真机调试包
- iOS 9.3 DeveloperDisk Image
- ios openssl(libssl.a和libcrypto.a)编译 支
- ios 12.2 (16E5191d)
- 智能家居手机APP源代码
- Cisco IOS 镜像 ASA L2 L3 c2900 c3660 c7200
- 最新iOS内置字体集
- TI C66X多核软件开发MCSDK技术 基于CC
- RayWenderlich iOS 11 by Tutorials 正式版 v1
- 计算机图形学(第三版)清晰中文版
- ServoStudioSetup_1_41_4_3.exe
- c2800nm-adventerprisek9-mz.150-1.M.bin
- Xcode项目集成Unity
评论
共有 条评论