Table Index Highlight

I believe that this should be just a property, but for life I was looking for me and can not find the answer.

I have a table pointer to the right of my table. When selected, it highlights everything. I would like to emulate an iPod application when it is semi-transparent when selecting the index itself (alpha, possibly .4f).

Any ideas?

+3
ios objective-c iphone uitableview
Feb 21 '10 at 2:35
source share
2 answers

From what I discovered, this could do it (but might reject your application):

- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { for(UIView *view in [tv subviews]) { if([[[view class] description] isEqualToString:@"UITableViewIndex"]) { [view setAlpha:0.4]; } } //rest of cellForRow handling... } 
+2
Feb 21 '10 at 3:00
source share

I do not think it is possible, look at these two questions:

  • Setting section indexes in UITableView in iphone application
  • iPhone Dev: Create Your Own Index

Google Fu brought nothing new.

The only official way seems to be writing your own index, which seems to be a moderate task.

+1
May 01 '11 at 9:07 a.m.
source share



All Articles