Issues in custom table view in iPhone
I am implementing my custom table view controller. The issue I am facing is that when i select a particular cell in my table, the color of the cell does not changes and after i return back to this page, it does not show the selection user made earlier. Aslo, my scrollbar开发者_开发百科 is not getting flashed for the first time. Any clue what is missing in my code?
You would have put this line somewhere in your cellForRowAtIndexPath
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
Please either remove this or do it like:
[cell setSelectionStyle:UITableViewCellSelectionStyleBlue];
or
[cell setSelectionStyle:UITableViewCellSelectionStyleGray];
精彩评论