开发者

TTTableViewController not showing activity status when reloading data

I'm using a TTTableViewController that loads different data urls when a UISegmentedControl is clicked.

currentUrl = [urlList objectAtIndex:segmentedControl.selectedSegmentIndex];
....
[self invalidateModel];
....

it's working fine and when I select a diff开发者_开发百科erent segmented control my TTTableViewController loads the new data from the currentUrl.

The problem is that I don't get the activity status (the spinning loading overlay) when the new data is loaded.

Is there any method I can call to get the loading when I reload the table data?

Already tried many others method like refresh, reload, invalidateView.. But no luck so far Thanks!


Solved by calling

[self showLoading:YES];

when I invalidate the model, and implementing this in the delegate

- (void) didLoadModel:(BOOL)firstTime{
  [self showLoading:NO];
  [super didLoadModel:firstTime];
} 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜