⾃自定义cell的步骤

摘要: ⾃自定义cell的步骤(每个cell的⾼高度不⼀一样,每个cell⾥里⾯面显⽰示的 内容也不⼀一样)新建⼀一个继承⾃自UITableViewCell的⼦子类2. 在initWithStyle:⽅方法中进⾏行⼦子控件的初始化1> 将有可能显⽰示的所有⼦子控件都添加到contentView中2> 顺便设... 阅读全文
posted @ 2015-11-10 16:20 aoxer 阅读(151) 评论(0) 推荐(0)

duplicate symbol linker command failed with exit code 1

摘要: duplicate symbol _OBJC_CLASS_ 类名clang: error: linker command failed with exit code 1 (use -v to see invocation)90%的问题是出现在#import了.m文件还有就是项目中包含了两个相同的.m... 阅读全文
posted @ 2015-10-27 10:13 aoxer 阅读(128) 评论(0) 推荐(0)

错误信息

摘要: 错误信息:button text attributes only respected for UIControlStateNormal, UIControlStateSelected and UIControlStateDisabled. state = 1 is interpreted as UI... 阅读全文
posted @ 2015-10-26 20:47 aoxer 阅读(132) 评论(0) 推荐(0)

xCode 6 在Mac OS 10.10下 沙盒位置

摘要: /Users/a/Library/Developer/CoreSimulator/Devices/626B98BA-DB0B-4B9B-964D-CBA2D1E47748/data/Containers/Bundle/Application/5A74C7FC-0686-48EF-B216-ADC1F... 阅读全文
posted @ 2015-10-15 21:01 aoxer 阅读(187) 评论(0) 推荐(0)

某个控件不显示

摘要: 某个控件不显示1. frame的尺寸和位置是否为02. 控件的hidden属性是否为YES3. 检查有没有添加到父控件中4. alpha 是否为05. 被其他控件遮住了6. 位置不对, x, y为负数 和可能在复杂的计算过程中算错xy;7. 根本没有创建实例化这个控件 UIButton *btn;8... 阅读全文
posted @ 2015-09-16 10:30 aoxer 阅读(149) 评论(0) 推荐(0)

forin循环 和for循环 简单关系

摘要: NSArray *dictArray =[NSArray array];for (int i = 0; i<dictArray.count; i++) { NSDictionary *dict = dictArray[i];}等同于如下forin循环NSArray*dictArray =[NS... 阅读全文
posted @ 2015-09-10 20:51 aoxer 阅读(255) 评论(0) 推荐(0)

项目资源有改动 做两个操作

摘要: 1.删软件2.Clear 阅读全文
posted @ 2015-09-02 10:20 aoxer 阅读(91) 评论(0) 推荐(0)

xCode6 沙盒位置

摘要: /Users/用户名/Library/ Developer/CoreSimulator/Devices/模拟器UDID/data/Containers/Bundle/Applications/ 阅读全文
posted @ 2015-09-02 10:15 aoxer 阅读(122) 评论(0) 推荐(0)

UITableViewCell 重用原理(reuse)

摘要: iOS设备的内存有限,如果用UITableView显示成千上万条数据,就需要成千上万个UITableViewCell对象的话,那将会耗尽iOS设备的内存。要解决该问题,需要重用UITableViewCell对象重用原理:当滚动列表时,部分UITableViewCell会移出窗口,UITableVie... 阅读全文
posted @ 2015-09-01 22:23 aoxer 阅读(757) 评论(0) 推荐(0)

UIScrollView的常见属性

摘要: 阅读全文
posted @ 2015-08-20 22:47 aoxer 阅读(101) 评论(0) 推荐(0)