我想从服务器数据中填充 UItableview。我使用下面的代码,但 tableview 先加载然后再加载。
[self GetReaction:(@"12")]; // This method fetch the data from server.
[_tblLines reloadData]; //Reload Ui Table view
当我使用 NSLOG 打印消息时,然后 [_tblLines reloadData]; 首先然后 [self GetReaction:(@"12")];
2013-06-18 17:30:51.970 Penguin[2230:c07] Counter //Table view
2013-06-18 17:30:51.974 Penguin[2230:c07] Counter
2013-06-18 17:30:51.978 Penguin[2230:c07] Counter
2013-06-18 17:30:51.988 Penguin[2230:c07] Counter
2013-06-18 17:30:52.794 Penguin[2230:c07] Your Array elements are = Mind Blowing :)//methode
2013-06-18 17:30:52.795 Penguin[2230:c07] Your Array elements are = Thanks Superb :)
2013-06-18 17:30:52.822 Penguin[2230:c07] Your Array elements are = Mind Blowing :)
2013-06-18 17:30:52.822 Penguin[2230:c07] Your Array elements are = Thanks Superb :)
任何人都告诉我为什么 [_tblLines reloadData] 方法首先调用实际上我在方法之后调用它[self GetReaction:(@"12")]
。