2013-03-26 91 views
0

我已经改变了UITableViewCell标签的颜色,做reload的tableview如何强制重新加载的tableview?泰伯维附件按钮和泰伯维小区名称不改变颜色

[m_cEntityView reloadData]; 

[m_cEntityView selectRowAtIndexPath:self.m_cSelectdPath animated:NO scrollPosition:UITableViewScrollPositionNone]; 

但它正在采取这么多的时间来重新加载UITableView,有时它不显示accessory button,它在iPad Rootview controller中。请帮我解决这个问题?

+0

你也需要把状态在你的cellForRowAtIndexPath方法,来改变颜色。 – 2013-03-26 09:47:07

+0

以编程方式执行重载表语句,并且嗯,我们也有条件设置颜色和重置颜色的条件。 – user2186457 2013-03-26 09:50:10

回答

0

用下面的方法可以更新表中全段,定的代码将更新部分0

[tblViewPortfolio beginUpdates]; 
[tblViewPortfolio reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone]; 
[tblViewPortfolio endUpdates]; 
+0

但是,如果我这样做,它正在take.More超过1秒滚动rootviewcontroller tableview again.for 1秒,我们无法与表交互 – user2186457 2013-03-26 10:05:04