(Bug)UITableViewCell Separator disappear in iOS7

今天在测试一个工程时发现,ios7上tableview选择底部某一个cell后滚到最上面,发现最上面的cell的Separator不见了。甚是奇怪。最终发现可能是ios7上的bug(我擦,apple到现在都没修复吗?!~),网上提到很多方法,但是都不行,最终找到一个,顺利解决:

我在didSelectRowAtIndexPath中加上了下面两行即可

[tableView reloadData];
[tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];

https://devforums.apple.com/message/885634#885634

http://stackoverflow.com/questions/18924589/uitableviewcell-separator-disappearing-in-ios7?lq=1

你可能感兴趣的:((Bug)UITableViewCell Separator disappear in iOS7)