摘要: GET: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 // 1.获得请求管理者 AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager]; // 2 阅读全文
posted @ 2016-03-09 11:51 TingFengZhe 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (void)dealloc { self.window = nil; [super dealloc]; } - (BOOL)app 阅读全文
posted @ 2016-03-09 11:26 TingFengZhe 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" //extension @interface AppDelegate ()<UITextFieldDelegate> @end @implementation AppDelegate - (void)dealloc { self.window = ni 阅读全文
posted @ 2016-03-09 11:26 TingFengZhe 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (void)dealloc { self.window = nil; [super dealloc]; } - (BOOL)app 阅读全文
posted @ 2016-03-09 11:25 TingFengZhe 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (void)dealloc { self.window = nil; [super dealloc]; } - (BOOL)app 阅读全文
posted @ 2016-03-09 11:24 TingFengZhe 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunching 阅读全文
posted @ 2016-03-09 11:23 TingFengZhe 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate //手动内存管理, - (void)dealloc { // [_window release]; self.window = nil 阅读全文
posted @ 2016-03-09 11:22 TingFengZhe 阅读(234) 评论(0) 推荐(0) 编辑
摘要: ios开发学习中,经常弄不清楚ios的开发模式,今天我们就来进行简单的总结和探讨~ (一)代理模式 应用场景:当一个类的某些功能需要由别的类来实现,但是又不确定具体会是哪个类实现。优势:解耦合敏捷原则:开放-封闭原则实例:tableview的 数据源delegate,通过和protocol的配合,完 阅读全文
posted @ 2016-03-09 10:58 TingFengZhe 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 史上最全的iOS面试题及答案 2static () (1)函数体内 static 变量的作用范围为该函数体,不同于 auto 变量,该变量的内存只被分配一次, 因此其值在下次调用时仍维持上次的值; (2)在模块内的 static 全局变量可以被模块内所用函数访问,但不能被模块外其它函数访问; (3) 阅读全文
posted @ 2016-03-09 10:53 TingFengZhe 阅读(2565) 评论(0) 推荐(0) 编辑
摘要: [cpp] view plain copy print? 在iOS开发过程中,不管是做什么应用,都会碰到数据保存的问题。将数据保存到本地,能够让程序的运行更加流畅,不会出现让人厌恶的菊花形状,使得用户体验更好。下面介绍一下数据保存的方式: 1.NSKeyedArchiver:采用归档的形式来保存数据 阅读全文
posted @ 2016-03-09 10:52 TingFengZhe 阅读(309) 评论(0) 推荐(0) 编辑