ios - Reload data of UITableView in background/foreground at specific time -


in application, have uitableviewcontroller. need reload data of tableview daily morning @ 12:01am whether application in background or foreground. think using local notification possible, don't know how do. please me. thanks.

you need use remote notifications wake app @ scheduled time. can use: - (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo fetchcompletionhandler:(void (^)(uibackgroundfetchresult))completionhandler

this called when application receives remote notification. put table view reloading code in here.

you can use web service such parse.com or urbanairship schedule notification sent @ specific time

sources: apple developer reference notifications guide


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -