0

我的用户界面中有一个 UITABLEVIEW

列表是黑色的,它的列表选择器是灰色的 我希望列表选择器是黑色或透明的

我找不到控制它的属性

这是什么属性?

4

2 回答 2

0

UITableViewCell selectionStyle财产

于 2013-10-20T23:20:05.650 回答
0

在里面

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

方法添加

    cell.selectionStyle = UITableViewCellSelectionStyleNone;

为了使选择透明。

我希望它有所帮助。

于 2013-10-20T23:22:32.860 回答