iphone - Force Reload Table View -
all,
how force reload table view (within view controller) every 5 seconds fifteen seconds when button pressed?
thanks, james
first create timer when press button,
nstimer *timer = [nstimer scheduledtimerwithtimeinterval:5.0 target:self selector:@selector(updatemethod) userinfo:nil repeats:yes];
then in method fires every 5 seconds
- (void) updatemethod { [self.tableview reloaddata]; }
Comments
Post a Comment