问题描述
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
采用这种方法
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
但是我只能在选择该单元格时才能看到它,否则它是不可见的.当背景为白色时,它可以完美地工作.我确定我需要设置一个属性,但是我不知道需要更改哪个属性才能使此功能正常工作.
but I can only see it when I select that cell otherwise it's not visible.and it work perfectly when background is white.I am sure that I need to set a property, but I don't know which property I need to change to make this thing work.
提前谢谢.
欢呼.
推荐答案
似乎公开指示符是灰色的高Alpha图像,因此将其覆盖在黑色背景上使其不可见.如果要执行此操作,则需要将自己的UIImageView添加到单元格的contentView中.
It would appear that the disclosure indicator is a gray, high-alpha image, so overlaying that over a black background makes it invisible. If you want to do this, you'll need to add your own UIImageView to the cell's contentView.
这篇关于如何使UITableViewCellAccessoryDisclosureIndicator在黑色背景下可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!