Fork me on GitHub

Coding iOS客户端学习--AppDelegate(持续更新,有关Core Data的内容未来更新)

写在前面

Coding客户端

AppDelegate

  • AppDelegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// AppDelegate.h
// Coding_iOS
//
// Created by 王 原闯 on 14-7-29.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
/**
* @author 叶帆
*
* @brief Core Data
*/
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
/**
* @author 叶帆
*
* @brief 存储Core Data中的managedObjectContext
一旦出现managedObjectContext change或者error
则使用abort()函数[abort()代码层面进行APP的终止,在开发时用于测试使用,线上程序不使用,回引起崩溃]
*/
- (void)saveContext;
/**
* @author 叶帆
*
* @brief Core Data中To access the Documents directory of your applications sandbox
*/
- (NSURL *)applicationDocumentsDirectory;
/**
* @author 叶帆
*
* @brief 根据不同的情况设置TabBar主框架,登录界面,引导页为RootViewController
*/
- (void)setupTabViewController;
- (void)setupLoginViewController;
- (void)setupIntroductionViewController;
/**
* 注册推送
*/
- (void)registerPush;
@end
  • AppDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
//
// AppDelegate.m
// Coding_iOS
//
// Created by 王 原闯 on 14-7-29.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define _IPHONE80_ 80000
#import "AppDelegate.h"
#import "RootTabViewController.h" //通用 TabBarViewController
#import "LoginViewController.h" //登录 VC
#import "AFNetworking.h" //网络库
#import "AFNetworkActivityIndicatorManager.h" //网络小菊花
#import "Login.h" //Login Model
#import "UnReadManager.h" //未读消息 Model,同时更新应用角标
#import "XGPush.h" //信鸽推送
#import "EaseStartView.h" //启动图
#import "BaseNavigationController.h" //通用 NavigationController
#import "PasswordViewController.h" //用户激活或者密码 VC
#import "IntroductionViewController.h" //引导 VC
#import "FunctionIntroManager.h" //引导 Model
#import <UMengSocial/UMSocial.h> //友盟统计分析组件
#import <UMengSocial/UMSocialWechatHandler.h> //友盟WeChat分享组件
#import <UMengSocial/UMSocialQQHandler.h> //友盟QQ分享组件
#import <evernote-cloud-sdk-ios/ENSDK/ENSDK.h> //印象笔记SDK
#import "UMSocialSinaSSOHandler.h" //友盟Sina分享组件
#import "Tweet.h"
#import "sys/utsname.h" //Apple提供的获取设备硬件版本和系统版本
@implementation AppDelegate
@synthesize managedObjectContext = _managedObjectContext;
@synthesize managedObjectModel = _managedObjectModel;
@synthesize persistentStoreCoordinator = _persistentStoreCoordinator;
/**
* @author 叶帆
*
* @brief 信鸽推送
区分 iOS 7, iOS 8, iOS 9 推送模式 (下个版本不支持iOS 7)
1. app在前台运行时,不弹出推送框,但是app通过代码可以获取到推送的消息。
2. app在后台运行或者杀死状态时,会弹出推送框并且可以通过代码获取到推送的消息。
3. app在前台和后台运行时,推送上报触发的是didReceiveRemoteNotification事件。
4. app在杀死状态时,推送上报触发的是didFinishLaunchingWithOptions事件。
*/
#pragma mark XGPush
- (void)registerPush{
float sysVer = [[[UIDevice currentDevice] systemVersion] floatValue];
if(sysVer < 8){
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
}else{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= _IPHONE80_
UIMutableUserNotificationCategory *categorys = [[UIMutableUserNotificationCategory alloc] init];
UIUserNotificationSettings *userSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge|UIUserNotificationTypeSound|UIUserNotificationTypeAlert
categories:[NSSet setWithObject:categorys]];
[[UIApplication sharedApplication] registerUserNotificationSettings:userSettings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
#endif
}
}
/**
* @author 叶帆
*
* @brief UserAgent 加入版本号到header中user agent
*/
#pragma mark UserAgent
- (void)registerUserAgent{
struct utsname systemInfo;
uname(&systemInfo);
NSString *deviceString = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
NSString *userAgent = [NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleIdentifierKey], (__bridge id)CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle(), kCFBundleVersionKey) ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleVersionKey], deviceString, [[UIDevice currentDevice] systemVersion], ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] ? [[UIScreen mainScreen] scale] : 1.0f)];
NSDictionary *dictionary = @{@"UserAgent" : userAgent};//User-Agent
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
}
#pragma lifeCycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
//网络
[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
[[AFNetworkReachabilityManager sharedManager] startMonitoring];
//sd加载的数据类型
[[[SDWebImageManager sharedManager] imageDownloader] setValue:@"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" forHTTPHeaderField:@"Accept"];
//设置导航条样式
[self customizeInterface];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
//UIWebView 的 User-Agent
[self registerUserAgent];
if ([Login isLogin]) {
[self setupTabViewController];
}else{
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
[self setupIntroductionViewController];
}
[self.window makeKeyAndVisible];
/**
* @author 叶帆
*
* @brief 特殊引导页,用来显示节日或者重要的引导信息,与引导页不同,引导页所做的是登录是引导界面
*/
[FunctionIntroManager showIntroPage];
/**
* @author 叶帆
*
* @brief 欢迎页图片的显示动画
*/
EaseStartView *startView = [EaseStartView startView];
@weakify(self);
[startView startAnimationWithCompletionBlock:^(EaseStartView *easeStartView) {
@strongify(self);
[self completionStartAnimationWithOptions:launchOptions];
}];
return YES;
}
/**
* @author 叶帆
*
* @brief 处理消息推送,用于固定推送的页面跳转和消息的状态
加入友盟统计,社会化分享组件
*/
- (void)completionStartAnimationWithOptions:(NSDictionary *)launchOptions{
if ([Login isLogin]) {
NSDictionary *remoteNotification = [launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (remoteNotification) {
[BaseViewController handleNotificationInfo:remoteNotification applicationState:UIApplicationStateInactive];
}
}
// UMENG 统计
[MobClick startWithAppkey:kUmeng_AppKey reportPolicy:BATCH channelId:nil];
// UMENG Social Account
[UMSocialData setAppKey:kUmeng_AppKey];
[UMSocialWechatHandler setWXAppId:kSocial_WX_ID appSecret:kSocial_WX_Secret url:[NSObject baseURLStr]];
[UMSocialQQHandler setQQWithAppId:kSocial_QQ_ID appKey:kSocial_QQ_Secret url:[NSObject baseURLStr]];
[ENSession setSharedSessionConsumerKey:kSocial_EN_Key consumerSecret:kSocial_EN_Secret optionalHost:nil];
[UMSocialSinaSSOHandler openNewSinaSSOWithRedirectURL:kSocial_Sina_RedirectURL];
// UMENG Social Config
[UMSocialConfig setFollowWeiboUids:@{UMShareToSina : kSocial_Sina_OfficailAccount}];//设置默认关注官方账号
[UMSocialConfig setFinishToastIsHidden:YES position:UMSocialiToastPositionCenter];
[UMSocialConfig setNavigationBarConfig:^(UINavigationBar *bar, UIButton *closeButton, UIButton *backButton, UIButton *postButton, UIButton *refreshButton, UINavigationItem *navigationItem) {
if (bar) {
[bar setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHexString:[NSObject baseURLStrIsTest]? @"0x3bbd79" : @"0x28303b"]] forBarMetrics:UIBarMetricsDefault];
}
if (navigationItem) {
if ([[navigationItem titleView] isKindOfClass:[UILabel class]]) {
UILabel *titleL = (UILabel *)[navigationItem titleView];
titleL.font = [UIFont boldSystemFontOfSize:kNavTitleFontSize];
titleL.textColor = [UIColor whiteColor];
}
}
}];
// 信鸽推送
[XGPush startApp:kXGPush_Id appKey:kXGPush_Key];
[Login setXGAccountWithCurUser];
//注销之后需要再次注册前的准备
@weakify(self);
void (^successCallback)(void) = ^(void){
//如果变成需要注册状态
if(![XGPush isUnRegisterStatus] && [Login isLogin]){
@strongify(self);
[self registerPush];
}
};
[XGPush initForReregister:successCallback];
//[XGPush registerPush]; //注册Push服务,注册后才能收到推送
//推送反馈(app不在前台运行时,点击推送激活时。统计而已)
[XGPush handleLaunching:launchOptions];
}
- (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.
[[ImageSizeManager shareManager] save];
[[Tweet tweetForSend] saveSendData];
}
- (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.
}
/**
* @author 叶帆
*
* @brief App Become Active 处理未读消息的操作
使用了clang push & pop 用于保存和恢复编译器的状态,目的是消除当前的警告
*/
- (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.
if ([Login isLogin]) {
[[UnReadManager shareManager] updateUnRead];
UIViewController *presentingVC = [BaseViewController presentingVC];
SEL selector = NSSelectorFromString(@"refresh");
if ([presentingVC isKindOfClass:NSClassFromString(@"Message_RootViewController")]
&& [presentingVC respondsToSelector:selector]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[presentingVC performSelector:selector];
#pragma clang diagnostic pop
}
}
}
/**
* @author 叶帆
*
* @brief App终止程序是保存Core Data Context
*/
- (void)applicationWillTerminate:(UIApplication *)application
{
// Saves changes in the application's managed object context before the application terminates.
[self saveContext];
}
/**
* @author 叶帆
*
* @brief 推送常用的函数处理
*/
#pragma mark - XGPush Message
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString * deviceTokenStr = [XGPush registerDevice:deviceToken];
DebugLog(@"deviceTokenStr : %@", deviceTokenStr);
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
DebugLog(@"didReceiveRemoteNotification-userInfo:-----\n%@", userInfo);
[XGPush handleReceiveNotification:userInfo];
[BaseViewController handleNotificationInfo:userInfo applicationState:[application applicationState]];
}
#pragma mark - Methods Private
- (void)setupLoginViewController{
LoginViewController *loginVC = [[LoginViewController alloc] init];
[self.window setRootViewController:[[BaseNavigationController alloc] initWithRootViewController:loginVC]];
}
- (void)setupIntroductionViewController{
IntroductionViewController *introductionVC = [[IntroductionViewController alloc] init];
// [self.window setRootViewController:[[BaseNavigationController alloc] initWithRootViewController:introductionVC]];
[self.window setRootViewController:introductionVC];
}
- (void)setupTabViewController{
RootTabViewController *rootVC = [[RootTabViewController alloc] init];
rootVC.tabBar.translucent = YES;
[self.window setRootViewController:rootVC];
}
- (void)customizeInterface {
//设置Nav的背景色和title色
UINavigationBar *navigationBarAppearance = [UINavigationBar appearance];
[navigationBarAppearance setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHexString:[NSObject baseURLStrIsTest]? @"0x3bbd79" : @"0x28303b"]] forBarMetrics:UIBarMetricsDefault];
[navigationBarAppearance setTintColor:[UIColor whiteColor]];//返回按钮的箭头颜色
NSDictionary *textAttributes = @{
NSFontAttributeName: [UIFont boldSystemFontOfSize:kNavTitleFontSize],
NSForegroundColorAttributeName: [UIColor whiteColor],
};
[navigationBarAppearance setTitleTextAttributes:textAttributes];
[[UITextField appearance] setTintColor:[UIColor colorWithHexString:@"0x3bbc79"]];//设置UITextField的光标颜色
[[UITextView appearance] setTintColor:[UIColor colorWithHexString:@"0x3bbc79"]];//设置UITextView的光标颜色
[[UISearchBar appearance] setBackgroundImage:[UIImage imageWithColor:kColorTableSectionBg] forBarPosition:0 barMetrics:UIBarMetricsDefault];
}
/**
* @author 叶帆
*
* @brief URL 模块情况分析
1.如果是包含coding-net:的情况且不是登录注册的链接,就是正常解析?VC:WebView
2.如果是包含coding-net:的情况且是登录注册的链接,那么就是从邮箱跳到Coding客户端,一种是重置密码邮件,一种是账号激活邮件
3.如果是包含en-:的情况是跳到Evernote的客户端
4.跳转到友盟客户端
*/
#pragma mark URL Schemes
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
DebugLog(@"path: %@, params: %@", [url path], [url queryParams]);
if ([url.absoluteString hasPrefix:kCodingAppScheme]) {
if (![self showPasswordWithURL:url]) {//如果不是登录注册的链接,就是用正常的解析模式解析
[BaseViewController presentLinkStr:url.absoluteString];
}
return YES;
}else if ([url.absoluteString hasPrefix:@"en-:"]){
return [[ENSession sharedSession] handleOpenURL:url];
}else{
return [UMSocialSnsService handleOpenURL:url];
}
}
/**
* @author 叶帆
*
* @brief 通过对URL中的关键词分析从而启动应用,并且使用GCD占据主线程弹出临时会话的VC
主要实现的是对重置密码和注册后账号激活,从邮箱App跳到Coding客户端的操作
成功自动销毁线程回到主线程,方法很赞!
*/
- (BOOL)showPasswordWithURL:(NSURL *)url{
PasswordType type;
NSString *email, *key;
if ([[url lastPathComponent] isEqualToString:@"resetPassword"]) {
type = PasswordReset;
}else if ([[url lastPathComponent] isEqualToString:@"activate"]){
type = PasswordActivate;
}else{
return NO;
}
email = [[url queryParams] objectForKey:@"email"];
key = [[url queryParams] objectForKey:@"key"];
if (email.length <= 0 || key.length <= 0) {
return NO;
}
//弹出临时会话
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
PasswordViewController *vc = [PasswordViewController passwordVCWithType:type email:[email URLDecoding] andKey:key];
vc.successBlock = ^(PasswordViewController *presentVC, id data){
[presentVC dismissViewControllerAnimated:YES completion:^{
NSString *tipStr;
switch (presentVC.type) {
case PasswordReset:
tipStr = @"修改密码成功~";
break;
case PasswordActivate:
tipStr = @"账号激活成功~";
break;
default:
tipStr = @"操作成功";
break;
}
kTipAlert(@"%@", tipStr);
}];
};
[BaseViewController presentVC:vc];
});
return YES;
}
#pragma mark - Methods Core Data
- (void)saveContext
{
NSError *error = nil;
NSManagedObjectContext *managedObjectContext = self.managedObjectContext;
if (managedObjectContext != nil) {
if ([managedObjectContext hasChanges] && ![managedObjectContext save:&error]) {
// Replace this implementation with code to handle the error appropriately.
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
DebugLog(@"Unresolved error %@, %@", error, [error userInfo]);
abort();
}
}
}
#pragma mark - Core Data stack
// Returns the managed object context for the application.
// If the context doesn't already exist, it is created and bound to the persistent store coordinator for the application.
- (NSManagedObjectContext *)managedObjectContext
{
if (_managedObjectContext != nil) {
return _managedObjectContext;
}
NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator];
if (coordinator != nil) {
_managedObjectContext = [[NSManagedObjectContext alloc] init];
[_managedObjectContext setPersistentStoreCoordinator:coordinator];
}
return _managedObjectContext;
}
// Returns the managed object model for the application.
// If the model doesn't already exist, it is created from the application's model.
- (NSManagedObjectModel *)managedObjectModel
{
if (_managedObjectModel != nil) {
return _managedObjectModel;
}
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"Coding_iOS" withExtension:@"momd"];
_managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];
return _managedObjectModel;
}
// Returns the persistent store coordinator for the application.
// If the coordinator doesn't already exist, it is created and the application's store added to it.
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator
{
if (_persistentStoreCoordinator != nil) {
return _persistentStoreCoordinator;
}
NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"Coding_iOS.sqlite"];
NSError *error = nil;
_persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&error]) {
/*
Replace this implementation with code to handle the error appropriately.
abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
Typical reasons for an error here include:
* The persistent store is not accessible;
* The schema for the persistent store is incompatible with current managed object model.
Check the error message to determine what the actual problem was.
If the persistent store is not accessible, there is typically something wrong with the file path. Often, a file URL is pointing into the application's resources directory instead of a writeable directory.
If you encounter schema incompatibility errors during development, you can reduce their frequency by:
* Simply deleting the existing store:
[[NSFileManager defaultManager] removeItemAtURL:storeURL error:nil]
* Performing automatic lightweight migration by passing the following dictionary as the options parameter:
@{NSMigratePersistentStoresAutomaticallyOption:@YES, NSInferMappingModelAutomaticallyOption:@YES}
Lightweight migration will only work for a limited set of schema changes; consult "Core Data Model Versioning and Data Migration Programming Guide" for details.
*/
DebugLog(@"Unresolved error %@, %@", error, [error userInfo]);
abort();
}
return _persistentStoreCoordinator;
}
#pragma mark - Application's Documents directory
// Returns the URL to the application's Documents directory.
- (NSURL *)applicationDocumentsDirectory
{
return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
}
@end

版权声明



Ivan’s Blog by Ivan Ye is licensed under a Creative Commons BY-NC-ND 4.0 International License.
叶帆创作并维护的叶帆的博客博客采用创作共用保留署名-非商业-禁止演绎4.0国际许可证

本文首发于Ivan’s Blog | 叶帆的博客博客( http://yeziahehe.com ),版权所有,侵权必究。

本文链接:http://yeziahehe.com/2015/10/06/Coding_iOS_client_learning--AppDelegate(update)/