iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7,...

7
iOS App Extensions Today Extensions: OpenURL

Transcript of iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7,...

Page 1: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

iOS App Extensions

Today Extensions: OpenURL

Page 2: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com
Page 3: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

Lightweight Interface

Page 4: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

OpenURL

// Application context UIApplication.sharedApplication().openURL(url)

// Extension context extensionContext?.openURL(url, completionHandler: ((Bool) -> Void)?)

Page 5: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

extensionContext

Optional property on UIViewController Can use to test for application vs extension

Page 6: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

Demo

URL scheme for app Widget – add button, action openURL!

Page 7: iOS App Extensions - raywenderlich.com · Introduction to CloudKit Part 6: Working wi... Nov 7, 2014, 3:00 PM Tomorrow You have no events scheduled for tomorrow. Edit raywenderlich.com

Challenge Time!