NSTimer *timer = [NSTimer timeWithTimeInterval:5.0
target:self
selector:@selector(reloadData:)
userInfo:nil
repeats:YES];
[NSRunLoop mainRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];
-(void)reloadData:(NSTimer*)tim {
[tableView reloadData];
}
No comments:
Post a Comment