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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -