View
9
Download
0
Category
Preview:
Citation preview
iOS App Extensions
Today Extensions: Updating
NSURLSession
// 2: Work in the background NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier(config)
// 3: Set the shared container identifier config.sharedContainerIdentifier = “group.com.myGroupID”
// 1: Set separate configuration identifiers config.sharedContainerIdentifier = “com.myApp” config.sharedContainerIdentifier = “com.myAppExtension”
Background Refresh
func widgetPerformUpdateWithCompletionHandler( completionHandler: ((NCUpdateResult) -> Void)!) {
}
case NewData case NoData case Failed
Demo
RWFetcher Widget update Delegate
Challenge Time!
Recommended