uitableview 插入新的section?并始终保持在顶部?

stoneman2011 发布于 2013年11月29日 | 更新于 2013年11月29日
无人欣赏。

现在我想在一个uitableview 上插入一个新的section ,但要保持这个插入新的section 总是在顶部。我使用如下代码 [myTableView beginUpdates]; [myTableView insertSections:[NSIndexSet indexSetWithIndex:displaySec-1] withRowAnimation:UITableViewRowAnimationTop];

    [totalSectionArr insertObject:[tempdays objectAtIndex:displaySec] atIndex:displaySec-1];

    [myTableView endUpdates];
第一次插入 确实在顶部,第二次就跑到中间去了?求解阿?各位
共1条回复
stoneman2011 回复于 2013年11月29日

问题不能沉阿 大哥大姐门

登录 或者 注册
相关帖子