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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -