Top Banner
iOS App Extensions Today Extensions: Updating
6

iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

Jun 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

iOS App Extensions

Today Extensions: Updating

Page 2: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com
Page 3: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

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”

Page 4: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

Background Refresh

func widgetPerformUpdateWithCompletionHandler( completionHandler: ((NCUpdateResult) -> Void)!) {

}

case NewData case NoData case Failed

Page 5: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

Demo

RWFetcher Widget update Delegate

Page 6: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 7: Sub... Nov 10, 2014, 12:00 PM Calendar Tomorrow You have no events scheduled for tomorrow. raywenderlich.com

Challenge Time!