摘要: UITapGestureRecognizer*tapGesture=[[UITapGestureRecognizer alloc]initWithTarget:selfaction:@selector(Actiondo:)]; [uiview addGestureRecognizer:tapGes... 阅读全文
posted @ 2015-08-04 09:39 刘lady 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 禁止UIScrollView垂直方向滚动,只允许水平方向滚动scrollview.contentSize =CGSizeMake(长度, 0);禁止UIScrollView水平方向滚动,只允许垂直方向滚动scrollview.contentSize =CGSizeMake(0, 宽度); 阅读全文
posted @ 2015-08-04 09:04 刘lady 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/phunxm/article/details/42174937目录(?)[-]iPhone尺寸规格单位inch英吋iPhone手机宽高屏幕尺寸像素密度PPI缩放因子scale factorbetween logic point and device p... 阅读全文
posted @ 2015-08-02 19:30 刘lady 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/hamasn/article/details/8613593Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]今天做一个tableView遇到一个这么个问... 阅读全文
posted @ 2015-08-02 18:59 刘lady 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 报错Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-complia... 阅读全文
posted @ 2015-08-02 13:22 刘lady 阅读(110) 评论(0) 推荐(0) 编辑
摘要: XIB文件:UIScrollView控件和UIPageControl控件 在.h文件中连线ViewController:导入头文件,遵守代理协议,实现代理方法,设置UIScrollView和UIPageControl属性 设置代理人(self),分页属性,内容页大小,显示页大小,添加图片 ... 阅读全文
posted @ 2015-08-01 13:47 刘lady 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 导入这个第三方 Model.h 1 #import 2 @class Model; 3 4 @protocol ModelDelegate 5 6 -(void)didModel:(Model*)model receiveArray:(NSArray*)array; 7 @end 8 ... 阅读全文
posted @ 2015-07-30 17:59 刘lady 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 当两个section的cell数量都为5的时候,方法的调用顺序:-[ViewController numberOfSectionsInTableView:] -[ViewController tableView:titleForHeaderInSection:]-[ViewController ta... 阅读全文
posted @ 2015-07-30 17:58 刘lady 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 转自:http://tsyouaschen.iteye.com/blog/1946957判断给定的点是否被一个CGRect包含,可以用CGRectContainsPoint函数BOOLcontains=CGRectContainsPoint(CGRectrect,CGPointpoint);判断一个... 阅读全文
posted @ 2015-07-23 18:29 刘lady 阅读(308) 评论(0) 推荐(0) 编辑
摘要: - (void)setAppInfo:(AppInfo *)appInfo { _appInfo = appInfo; _icon.image = appInfo.image; _label.text = appInfo.name;}+ (instancetype)appView ... 阅读全文
posted @ 2015-06-28 14:41 刘lady 阅读(194) 评论(0) 推荐(0) 编辑