I have subclassed UITableViewCell and I need to draw my own disclosure indicator. The position of the disclosure indicator depends on whether or not the table view has section index titles set (the “scroll bar”, typically the alphabet).
Does anyone know of a way to check if the table view shows section index titles from the cell?
Checking this from the
UITableViewCellsubclass would require a big deal of coupling with theUITableViewclass, so I suggest you take an alternate route – add aBOOLvariable which you set in thecellForRowAtIndexPath:function and then call a function on your cell that will draw the disclosure indicator according to the value of the variable.