2014年1月7日

UITableViewCell unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell

摘要: iOS6之后,按照之前的官方文档会报这样的bugTerminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable todequeuea cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'- (UITableViewCell *)tableView:(U 阅读全文

posted @ 2014-01-07 18:35 mix1009 阅读(6181) 评论(0) 推荐(1)

UISegmentControl的弊端---用UIButton代替

摘要: 笔者在使用UISegmentControl时,发现这个控件有些许bug.最突出的问题是设置背景图。如果不涉及到背景图,勉强够用。一旦涉及到设置背景图。基本就无法正常显示,只能看到一片模糊的蓝色[tintColor的颜色]如果当我们的segment个数不太多,我们可以多个UIButton模拟构造它。注意初始化的时候设置UIButton的风格是custom而不是system我们需要UI 帮我们设置4张图。每个UIButton需要两张图片。一张是normal状态,一张是selected状态代码如下 self.manButton = [UIButton buttonWithType:UIButton. 阅读全文

posted @ 2014-01-07 14:44 mix1009 阅读(263) 评论(0) 推荐(0)

导航