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
Comments
Post a Comment