08 2015 档案

摘要:1.1这是一个引用NSDataAdditions时出现的bug1.2解决办法(1)添加libz.dylib类库2.1 'libxml/HTMLpraser.h' file not found2.2解决办法(1)添加libxml2.2.dylib类库(2)在Build Settings->Other ... 阅读全文
posted @ 2015-08-28 09:44 夏沫123 阅读(330) 评论(0) 推荐(0)
摘要://*****添加手势,一定要打开用户交互,否则就不会响应 imgv.userInteractionEnabled=YES; //创建一个点击手势 UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc]initWithTarget:se... 阅读全文
posted @ 2015-08-27 15:00 夏沫123 阅读(118) 评论(0) 推荐(0)
摘要://创建一个字符串对象NSstring * str1 = @"hello"; NSString * str = [[NSString alloc]initWithString:@"hello world!"]; //把C的字符串转化为OC的字符串 NSString * str_1 = [[NSSt... 阅读全文
posted @ 2015-08-24 15:56 夏沫123 阅读(159) 评论(0) 推荐(0)
摘要:1. 进度条和滑动条2. 活动指示器:UIActivityIndicatorViewUIActivityIndicatorView *ac =[[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndica... 阅读全文
posted @ 2015-08-24 15:42 夏沫123 阅读(96) 评论(0) 推荐(0)
摘要:如何使用@property进行自动实现呢?答案就是使用属性参数,例如car属性的setter方法,可以通过@property定义如下:@property (nonatomic,retain) Car *car;你会发现此刻我们不必手动实现car的getter、setter方法程序仍然没有内存泄露。其... 阅读全文
posted @ 2015-08-24 15:39 夏沫123 阅读(221) 评论(0) 推荐(0)