开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜