问题描述
我将UITableView与静态单元格一起使用。
如果我使用 reloadData
,那么一切正常。
I use UITableView with static cells.If I use reloadData
, than everything is OK.
如果我尝试 reloadRowsAtIndexPaths
它隐藏了行。如果我向上拖动tableView(当单元格更新时),则会出现行。
If I try reloadRowsAtIndexPaths
it hides row. Row appears if I drag tableView up-down(when cell is updated).
推荐答案
我遇到了同样的问题,似乎是个bug。我试验了一些,当我将动画选项设置为 UITableViewRowAnimationNone
时,问题不会发生。当你将该选项设置为 UITableViewRowAnimationTop
时,会发生一些其他有趣的事情。
I had the same problem, it seems to be a bug. I experimented some and the problem doesn't occur when I set the animation option to UITableViewRowAnimationNone
. Some other interesting stuff happens when you set that option to UITableViewRowAnimationTop
, too.
这篇关于UITableView reloadRowsAtIndexPaths隐藏行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!