
当我使用其他类型的配件时,它可以工作,但不能使用checkmark附件.
它在iOS 6中完美运行,但在iOS 7上无法运行.
我何时失踪?
(UItableVIEwCell *)tableVIEw:(UItableVIEw *)tableVIEw cellForRowAtIndexPath:(NSIndexPath *)indexPath { UItableVIEwCell *cell = [tableVIEw dequeueReusableCellWithIDentifIEr:EVENT_SELECTION_CELL_IDENTIFIER forIndexPath:indexPath]; Event *event = [self.fetchedResultsController objectAtIndexPath:indexPath]; cell.textLabel.text = event.name; cell.selectionStyle = UItableVIEwCellSelectionStyleNone; if ([event.current boolValue]) { cell.accessoryType = UItableVIEwCellAccessorycheckmark; } else { cell.accessoryType = UItableVIEwCellAccessoryNone; } return cell;}解决方法 我解决了这个问题,改变了uitablevIEw的色调 我通过InterfaceBuilder将uint的tintcolot更改为Default color
要么
tableVIEw.tintcolor = [UIcolor blackcolor];总结
以上是内存溢出为你收集整理的UITableViewCellAccessoryCheckmark未在iOS 7中显示全部内容,希望文章能够帮你解决UITableViewCellAccessoryCheckmark未在iOS 7中显示所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)