UITableViewCellAccessoryCheckmark未在iOS 7中显示

UITableViewCellAccessoryCheckmark未在iOS 7中显示,第1张

概述我在单元格中显示Checkmark附件时遇到问题. 当我使用其他类型的配件时,它可以工作,但不能使用Checkmark附件. 它在iOS 6中完美运行,但在iOS 7上无法运行. 我何时失踪? (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 我在单元格中显示checkmark附件时遇到问题.
当我使用其他类型的配件时,它可以工作,但不能使用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中显示所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1102471.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存