开发者

cell.accessoryType not workinkg in tableView cellForRowAtIndexPath... method

开发者 https://www.devze.com 2023-01-30 15:20 出处:网络
I have a tableView inside a Navigation Controller I want to change the background and I use [[self view] setBackgroundColor:SomeColor];

I have a tableView inside a Navigation Controller

I want to change the background and I use

[[self view] setBackgroundColor:SomeColor];

in the -awakeFromNib method in the controller class

if "SomeColor" is black I cannot see the cell.accessoryType (UITableViewCellAccessoryDisclosureIndicator).

is there a way to make it white?

I try to set cell.accessoryType = UITableViewCellAccessoryDetail开发者_StackOverflowDisclosureButton; in the - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath metod but nothing happens, am I missing something?


Try to do it in - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if the table view is plained.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号