随笔分类 -  IOS随笔

摘要:一,概述KVO,即:Key-Value Observing,它提供一种机制,当指定的对象的属性被修改后,则对象就会接受到通知。简单的说就是每次指定的被观察的对象的属性被修改后,KVO就会自动通知相应的观察者了。二,使用方法系统框架已经支持KVO,所以程序员在使用的时候非常简单。1. 注册,指定被观察... 阅读全文
posted @ 2015-09-24 16:39 errorbook 阅读(119) 评论(0) 推荐(0)
摘要:h文件#import @interface Encryption : NSObject{ }-(void)encryption;@property (nonatomic, retain) NSString *SetEncryption;@property (nonatomic, retain)... 阅读全文
posted @ 2015-09-24 16:27 errorbook 阅读(142) 评论(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 阅读(836) 评论(0) 推荐(0)
摘要:注意:这个方法只支持IOS7以上 NSString * htmlString = @"html文本内容"; NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUs... 阅读全文
posted @ 2015-09-23 09:09 errorbook 阅读(261) 评论(0) 推荐(0)