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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -