摘要: - (void)viewDidLoad { [super viewDidLoad]; self.view.userInteractionEnabled = YES; UITapGestureRecognizer *singleTap = [[UITapGestureReco... 阅读全文
posted @ 2015-09-24 17:16 errorbook 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 一,概述KVO,即:Key-Value Observing,它提供一种机制,当指定的对象的属性被修改后,则对象就会接受到通知。简单的说就是每次指定的被观察的对象的属性被修改后,KVO就会自动通知相应的观察者了。二,使用方法系统框架已经支持KVO,所以程序员在使用的时候非常简单。1. 注册,指定被观察... 阅读全文
posted @ 2015-09-24 16:39 errorbook 阅读(111) 评论(0) 推荐(0) 编辑
摘要: h文件#import @interface Encryption : NSObject{ }-(void)encryption;@property (nonatomic, retain) NSString *SetEncryption;@property (nonatomic, retain)... 阅读全文
posted @ 2015-09-24 16:27 errorbook 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 使用UIWebView出现警告"Assigning to 'id' from incompatible type '***ViewController *const __strong'" 和 "'id' from incompatible type 'PortalVC *const __strong... 阅读全文
posted @ 2015-09-24 16:14 errorbook 阅读(807) 评论(0) 推荐(0) 编辑