09 2015 档案
摘要:- (void)viewDidLoad { [super viewDidLoad]; self.view.userInteractionEnabled = YES; UITapGestureRecognizer *singleTap = [[UITapGestureReco...
阅读全文
摘要:一,概述KVO,即:Key-Value Observing,它提供一种机制,当指定的对象的属性被修改后,则对象就会接受到通知。简单的说就是每次指定的被观察的对象的属性被修改后,KVO就会自动通知相应的观察者了。二,使用方法系统框架已经支持KVO,所以程序员在使用的时候非常简单。1. 注册,指定被观察...
阅读全文
摘要:h文件#import @interface Encryption : NSObject{ }-(void)encryption;@property (nonatomic, retain) NSString *SetEncryption;@property (nonatomic, retain)...
阅读全文
摘要:使用UIWebView出现警告"Assigning to 'id' from incompatible type '***ViewController *const __strong'" 和 "'id' from incompatible type 'PortalVC *const __strong...
阅读全文
摘要:http://blog.sina.com.cn/s/blog_7018d3820101djut.html一、键盘风格UIKit框架支持8种风格键盘。typedefenum{UIKeyboardTypeDefault,//默认键盘:支持所有字符UIKeyboardTypeASCIICapable,//...
阅读全文
摘要:1.UITextField的初始化和设置 textField = [[UITextField alloc] initWithFrame:CGRectMake(120.0f, 80.0f, 150.0f, 30.0f)]; [textField setBorderStyle:UITextBord...
阅读全文
摘要:一、新建一个textView//初始化 UITextView *textView = [[[UITextView alloc] init] autorelease]; //设置代理 需在interface中声明UITextViewDelegate textView.delegate = self; ...
阅读全文
摘要:原创地址:http://www.cocoachina.com/ios/20141212/10622.html第一步,下载SDWebImage,导入工程。github托管地址https://github.com/rs/SDWebImage第二步,在需要的地方导入头文件#import"UIImageVi...
阅读全文
摘要:注意:这个方法只支持IOS7以上 NSString * htmlString = @"html文本内容"; NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUs...
阅读全文
摘要:官方介绍:TOWebViewController 是在线 web 浏览视图控制器,可以用来快速显示 web 内容,自动基于设备的当前 iOS 版本自定义外观,能动态生成所有运行时需要的图像。兼容 iPhone 和 iPad,要求 iOS 5.0 及以上。 下载地址:https://gith...
阅读全文

浙公网安备 33010602011771号