diff options
author | Siqi LIU <me@siqi.fr> | 2013-08-18 15:59:41 +0800 |
---|---|---|
committer | Siqi LIU <me@siqi.fr> | 2013-08-21 17:23:53 +0800 |
commit | 8b331e590cf6c1e5a781b921aabd8b7614021ebd (patch) | |
tree | d3a20c1c913aec8717faa1c52658d66d062be833 /ios | |
parent | 83f4be4740892e497d30f660abb55e40c628158e (diff) |
dismiss spinner when found a service
Change-Id: I130f98ef1a98af858eb2125b275274bf4e18c66b
Diffstat (limited to 'ios')
-rw-r--r-- | ios/iosremote/iosremote/serverList_vc.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ios/iosremote/iosremote/serverList_vc.m b/ios/iosremote/iosremote/serverList_vc.m index ff3ba36457ac..083c1be7af00 100644 --- a/ios/iosremote/iosremote/serverList_vc.m +++ b/ios/iosremote/iosremote/serverList_vc.m @@ -170,10 +170,10 @@ if(!moreComing) { - // [self.tableView reloadData]; - [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; [self.searchTimeoutTimer invalidate]; [self.searchLabelTimer invalidate]; + self.comManager.searchState = WAITING; + [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; } } @@ -381,6 +381,7 @@ UIActivityIndicatorView * aiv = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; aiv.center = CGPointMake([sectionHeader.text sizeWithFont: sectionHeader.font].width + 2 * aiv.frame.size.width, sectionHeader.center.y); [aiv startAnimating]; + [aiv setTag:4]; [view addSubview:aiv]; } return view; |