Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 IOS 7 UILocalizedIndexedCollation 看起来很奇怪,我想自定义背景颜色和文本颜色,我到处搜索但没有成功,如果有人能够得到一些东西,请帮助我
self.tableView.sectionIndexColor = [UIColor darkGrayColor]; self.tableView.sectionIndexBackgroundColor = [UIColor clearColor];
这真的是“rmaddy”的帮助
UILocalizedIndexedCollation 没有用于设置其外观的公共属性,这意味着您无法直接自定义它。
我的目标是对齐,如附图所示(左侧的字段可以有任何宽度,但右侧的字段应该从相同的X坐标开始)。
X
现在我正在使用一个简单的表格代码来实现这一点:
<table><tr> <td>Left1<