Introducing the Photos Frameworks

Size: px
Start display at page:

Download "Introducing the Photos Frameworks"

Transcription

1 Media #WWDC14 Introducing the Photos Frameworks Session 511 Adam Swift ios Photos Frameworks 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

2 Introducing PhotoKit Photos Access photos and videos from photo library Create a full-featured app like built-in Photos app Photos UI Photo editing app extensions

3 What You Will Learn Photos framework Fetch and manipulate photo library model data Handle external changes Retrieve and edit photo/video content PhotosUI Framework How to build photo/video editing extensions

4 Photos Framework

5 Introducing the Photos Framework New Objective-C framework on ios First-class citizen Custom image picker Full-featured photo library browser and editor

6 Introducing the Photos Framework New Objective-C framework on ios Make First-class your citizen app a first-class citizen of user s Photo Library Custom image picker Custom image picker Full-featured photo library Full browser featured and photo editor Used by built-in Photos and Camera app Intended to supersede ALAssetsLibrary

7 What Does It Provide? Access photo and video assets, albums, and moments Add, remove, modify assets and albums Edit photo/video content and metadata

8 Photos API Overview Model data Fetch model objects Change model data Handle model changes Image and video content Retrieve image/video content Edit content

9 Model Data

10 Model Objects Represent the structure of your library Photo and video assets, moments, albums, folders, etc. Read-only Thread-safe

11 Model Objects

12 Model Objects Assets

13 Model Objects Assets

14 Model Objects Assets

15 Model Objects Assets

16 Model Objects Asset Collections Assets

17 Model Objects Asset Collections Assets

18 Model Objects Asset Collections Assets

19 Model Objects Asset Collections Assets

20 Model Objects Collection Lists Asset Collections Assets

21 Model Objects Collection Lists Asset Collections Assets

22 Model Objects Collection Lists Asset Collections Assets

23 Assets Photos and videos

24 Assets Photos and videos PHAsset Media type Creation date Location Favorite

25 Asset Collection Ordered collection of assets Albums, moments, and smart albums

26 Asset Collection Ordered collection of assets Albums, moments, and smart albums PHAssetCollection Type Title Start and end date

27 Collection List Ordered collection of collections Both asset collections and collection lists Folder, moment year

28 Collection List Ordered collection of collections Both asset collections and collection lists Folder, moment year PHCollectionList Type Title Start and end date

29 Fetching Model Objects Fetch via class methods on model object Fetch all video assets [PHAsset fetchassetswithmediatype:phassetmediatypevideo options:nil]

30 Fetching Model Objects Fetch via class methods on model object Fetch all video assets [PHAsset fetchassetswithmediatype:phassetmediatypevideo options:nil] Fetch all moments [PHAssetCollection fetchmomentswithoptions:nil]

31 Fetching Model Objects Fetch via class methods on model object Fetch all video assets [PHAsset fetchassetswithmediatype:phassetmediatypevideo options:nil] Fetch all moments [PHAssetCollection fetchmomentswithoptions:nil] Use options to filter and sort

32 Fetching Collection Contents Collections do not cache their contents Fetch contents via class methods

33 Fetching Collection Contents Collections do not cache their contents Fetch contents via class methods Fetch assets in an asset collection [PHAsset fetchassetsinassetcollection:myalbum options:nil]

34 Transient Collections Runtime-only transient collection Search results, user selection

35 Transient Collections Runtime-only transient collection Search results, user selection Interchangeable with regular collections Fetch contents Reuse your view controllers, etc.

36 Transient Collections Create a transient asset collection [PHAssetCollection transientassetcollectionwithassets:assets title:title]

37 Fetch Results Want synchronous, fast results Results of a fetch can be very large Don t need all objects in memory at once Work in batches

38 Fetch Results Results returned in a PHFetchResult Tracks IDs of the full result set Vends fully realized objects Similar API to NSArray

39 Fetch Results Results returned in a PHFetchResult Tracks IDs of the full result set Vends fully realized objects Similar API to NSArray Fetch result

40 Fetch Results Results returned in a PHFetchResult Tracks IDs of the full result set Vends fully realized objects Similar API to NSArray Fetch result assets[n]

41 Fetch Results Results returned in a PHFetchResult Tracks IDs of the full result set Vends fully realized objects Similar API to NSArray assets[n] Fetch result

42 Making Model Changes Support for user actions Favorite a photo Add to an album Model objects are read-only, can t mutate directly

43 Change Requests API Change request classes Create in a change request block Applied asynchronously out of process

44 Change Request Classes Change request class for each model class PHAssetChangeRequest PHAssetCollectionChangeRequest PHCollectionListChangeRequest Provide model object specific APIs setcreationdate: setfavorite:

45 Change Request Classes Not subclasses of model classes Separates thread-safe, immutable model objects and mutations Only valid within a change request block

46 Change Request Example - (void)togglefavorite:(phasset *)asset { // Changes must be performed in a change block [[PHPhotoLibrary sharedphotolibrary] performchanges:^{ // Create a change request for the asset PHAssetChangeRequest *changerequest = [PHAssetChangeRequest changerequestforasset:asset]; [changerequest setfavorite:[asset isfavorite]]; } completionhandler:^(bool success, NSError *error) {... }];

47 Change Request Example - (void)togglefavorite:(phasset *)asset { // Changes must be performed in a change block [[PHPhotoLibrary sharedphotolibrary] performchanges:^{ // Create a change request for the asset PHAssetChangeRequest *changerequest = [PHAssetChangeRequest changerequestforasset:asset]; [changerequest setfavorite:[asset isfavorite]]; } completionhandler:^(bool success, NSError *error) {... }];

48 Change Request Example - (void)togglefavorite:(phasset *)asset { // Changes must be performed in a change block [[PHPhotoLibrary sharedphotolibrary] performchanges:^{ // Create a change request for the asset PHAssetChangeRequest *changerequest = [PHAssetChangeRequest changerequestforasset:asset]; [changerequest setfavorite:[asset isfavorite]]; } completionhandler:^(bool success, NSError *error) {... }];

49 Change Request Example - (void)togglefavorite:(phasset *)asset { // Changes must be performed in a change block [[PHPhotoLibrary sharedphotolibrary] performchanges:^{ // Create a change request for the asset PHAssetChangeRequest *changerequest = [PHAssetChangeRequest changerequestforasset:asset]; [changerequest setfavorite:[asset isfavorite]]; } completionhandler:^(bool success, NSError *error) {... }];

50 Change Request Example - (void)togglefavorite:(phasset *)asset { // Changes must be performed in a change block [[PHPhotoLibrary sharedphotolibrary] performchanges:^{ // Create a change request for the asset PHAssetChangeRequest *changerequest = [PHAssetChangeRequest changerequestforasset:asset]; [changerequest setfavorite:[asset isfavorite]]; } completionhandler:^(bool success, NSError *error) {... }];

51 Creating New Model Objects Create via creation request request = [PHAssetChangeRequest creationrequestforassetfromimage:image]

52 Creating New Model Objects Create via creation request request = [PHAssetChangeRequest creationrequestforassetfromimage:image] Placeholder objects placeholder = [request placeholderforcreatedasset] Reference to a new, unsaved object Add to collections Can provide unique, persistent localidentifier

53 Whither Changes? Changes are done when completion handler invoked Model objects aren t refreshed Side effects and external changes

54 Handling Model Changes Lots of sources of change Your application, other applications icloud Photo Library, icloud Photo Sharing, My Photo Stream

55 Handling Model Changes Lots of sources of change Your application, other applications icloud Photo Library, icloud Photo Sharing, My Photo Stream

56 Change Notification We publish a PHChange to registered observers Delivered on a background queue Details on updated and deleted objects

57 Change Notification We publish a PHChange to registered observers Delivered on a background queue Details on updated and deleted objects Updated fetch results Inserts, updates, deletes, and moves

58 Fetch Result Change Details Fetch results are implicitly registered for change details Diffs calculated in the background Opt-out via fetch options Get updated fetch result from the PHFetchResultChangeDetails

59 Change Handling Example, Part One - (void)photolibrarydidchange:(phchange *)change { // re-dispatch to main queue dispatch_async(dispatch_get_main_queue(), ^{ // get change details PHFetchResultChangeDetails *changedetails = [change changedetailsforfetchresult:self.assets]; // get the updated fetch results if (changedetails) { self.assets = [changedetails fetchresultafterchanges];...

60 Change Handling Example, Part One - (void)photolibrarydidchange:(phchange *)change { // re-dispatch to main queue dispatch_async(dispatch_get_main_queue(), ^{ // get change details PHFetchResultChangeDetails *changedetails = [change changedetailsforfetchresult:self.assets]; // get the updated fetch results if (changedetails) { self.assets = [changedetails fetchresultafterchanges];...

61 Change Handling Example, Part One - (void)photolibrarydidchange:(phchange *)change { // re-dispatch to main queue dispatch_async(dispatch_get_main_queue(), ^{ // get change details PHFetchResultChangeDetails *changedetails = [change changedetailsforfetchresult:self.assets]; // get the updated fetch results if (changedetails) { self.assets = [changedetails fetchresultafterchanges];...

62 Change Handling Example, Part One - (void)photolibrarydidchange:(phchange *)change { // re-dispatch to main queue dispatch_async(dispatch_get_main_queue(), ^{ // get change details PHFetchResultChangeDetails *changedetails = [change changedetailsforfetchresult:self.assets]; // get the updated fetch results if (changedetails) { self.assets = [changedetails fetchresultafterchanges];...

63 Change Handling Example, Part One - (void)photolibrarydidchange:(phchange *)change { // re-dispatch to main queue dispatch_async(dispatch_get_main_queue(), ^{ // get change details PHFetchResultChangeDetails *changedetails = [change changedetailsforfetchresult:self.assets]; // get the updated fetch results if (changedetails) { self.assets = [changedetails fetchresultafterchanges];...

64 Change Handling Example, Part Two [collectionview performbatchupdates:^{ if ([[changedetails removedindexes] count]) { NSArray *removedindexpaths = // make indexpaths from indexes [collectionview deleteitemsatindexpaths:removedindexpaths]; } if ([[changedetails insertedindexes] count]) { NSArray *insertedindexpaths =... [collectionview insertitemsatindexpaths:insertedindexpaths]; } if ([[changedetails changedindexes] count]) { NSArray *changedindexpaths =... [collectionview reloaditemsatindexpaths:changedindexpaths]; }

65 Change Handling Example, Part Two [collectionview performbatchupdates:^{ if ([[changedetails removedindexes] count]) { NSArray *removedindexpaths = // make indexpaths from indexes [collectionview deleteitemsatindexpaths:removedindexpaths]; } if ([[changedetails insertedindexes] count]) { NSArray *insertedindexpaths =... [collectionview insertitemsatindexpaths:insertedindexpaths]; } if ([[changedetails changedindexes] count]) { NSArray *changedindexpaths =... [collectionview reloaditemsatindexpaths:changedindexpaths]; }

66 Change Handling Example, Part Two [collectionview performbatchupdates:^{ if ([[changedetails removedindexes] count]) { NSArray *removedindexpaths = // make indexpaths from indexes [collectionview deleteitemsatindexpaths:removedindexpaths]; } if ([[changedetails insertedindexes] count]) { NSArray *insertedindexpaths =... [collectionview insertitemsatindexpaths:insertedindexpaths]; } if ([[changedetails changedindexes] count]) { NSArray *changedindexpaths =... [collectionview reloaditemsatindexpaths:changedindexpaths]; }

67 Change Handling Example, Part Two [collectionview performbatchupdates:^{ if ([[changedetails removedindexes] count]) { NSArray *removedindexpaths = // make indexpaths from indexes [collectionview deleteitemsatindexpaths:removedindexpaths]; } if ([[changedetails insertedindexes] count]) { NSArray *insertedindexpaths =... [collectionview insertitemsatindexpaths:insertedindexpaths]; } if ([[changedetails changedindexes] count]) { NSArray *changedindexpaths =... [collectionview reloaditemsatindexpaths:changedindexpaths]; }

68 Demo

69 Image and Video Data Karl Hsu ios Photos Frameworks

70 Requesting Image and Video Data A variety of image sizes might be available Some sizes might not be cached Videos might even be streaming

71 PHImageManager Request images based on target size Request videos based on usage Asynchronous API Optionally retrieve data from the network

72 Requesting Images // Request image data for a square grid with cells of 160x160 pixels [manager requestimageforasset:photo targetsize:cgsizemake(160,160) contentmode:phimagecontentmodeaspectfill options:nil resulthandler:^(uiimage *result, NSDictionary *info) { if (result) { [cell setimage:result]; } else {... } }];

73 Advanced Image Requests // Create Image Request object PHImageRequestOptions *options = [PHImageRequestOptions new]; // Fetch the image from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(BOOL degraded, double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestimageforasset:... options:options...];

74 Advanced Image Requests // Create Image Request object PHImageRequestOptions *options = [PHImageRequestOptions new]; // Fetch the image from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(BOOL degraded, double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestimageforasset:... options:options...];

75 Advanced Image Requests // Create Image Request object PHImageRequestOptions *options = [PHImageRequestOptions new]; // Fetch the image from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(BOOL degraded, double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestimageforasset:... options:options...];

76 Advanced Image Requests // Create Image Request object PHImageRequestOptions *options = [PHImageRequestOptions new]; // Fetch the image from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(BOOL degraded, double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestimageforasset:... options:options...];

77 Image Request Callbacks [manager requestimageforasset:... ^(UIImage *result, NSDictionary *info) { }]; // This block can be called multiple times

78 Image Request Callbacks [manager requestimageforasset:... ^(UIImage *result, NSDictionary *info) { }]; // This block can be called multiple times First callback synchronous

79 Image Request Callbacks [manager requestimageforasset:... ^(UIImage *result, NSDictionary *info) { }]; // This block can be called multiple times First callback synchronous

80 Image Request Callbacks [manager requestimageforasset:... ^(UIImage *result, NSDictionary *info) { }]; // This block can be called multiple times First callback synchronous Second callback asynchronous

81 Requesting Videos // Request a playback item for video playback [manager requestplayeritemforvideo:video options:nil resulthandler:^(avplayeritem *item, NSDictionary *info) { AVPlayer *player = [AVPlayer playerwithplayeritem:playeritem]; }];

82 Advanced Video Requests // Create Video Request object PHVideoRequestOptions *options = [PHVideoRequestOptions new]; // Make sure we have the best quality options.deliverymode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; // Fetch the video from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestexportsessionforvideo:video options:options...];

83 Advanced Video Requests // Create Video Request object PHVideoRequestOptions *options = [PHVideoRequestOptions new]; // Make sure we have the best quality options.deliverymode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; // Fetch the video from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestexportsessionforvideo:video options:options...];

84 Advanced Video Requests // Create Video Request object PHVideoRequestOptions *options = [PHVideoRequestOptions new]; // Make sure we have the best quality options.deliverymode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; // Fetch the video from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestexportsessionforvideo:video options:options...];

85 Advanced Video Requests // Create Video Request object PHVideoRequestOptions *options = [PHVideoRequestOptions new]; // Make sure we have the best quality options.deliverymode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; // Fetch the video from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestexportsessionforvideo:video options:options...];

86 Advanced Video Requests // Create Video Request object PHVideoRequestOptions *options = [PHVideoRequestOptions new]; // Make sure we have the best quality options.deliverymode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; // Fetch the video from icloud if necessary and provide progress options.networkaccessallowed = YES; options.progresshandler = ^(double progress, NSError *error, BOOL *stop) { [self updateuservisibleprogress:progress error:error]; }; // Use the options to control the request behavior [manager requestexportsessionforvideo:video options:options...];

87 Scrolling Performance Scrolling a grid of thumbnails Maintain a cache around the visible range Start caching ahead of the scroll Stop caching behind the scroll

88 PHCachingImageManager Preloads and caches images Request against the caching image manager Requests are resolved against cached data Instance for each view controller

89 Preheating

90 Preheating

91 Preheating Visible Range

92 Preheating Visible Range Start Caching

93 Preheating Stop Caching Visible Range Start Caching

94 Preheating Stop Caching Visible Range Start Caching

95 PHCachingImageManager // Use the same args as for requestimageforasset PHCachingImageManager *cim = [self cachingimagemanager]; NSArray *soontobevisibleassets =... [cim startcachingimagesforassets:soontobevisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil]; NSArray *previouslyvisibleassets =... [cim stopcachingimagesforassets:previouslyvisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil];

96 PHCachingImageManager // Use the same args as for requestimageforasset PHCachingImageManager *cim = [self cachingimagemanager]; NSArray *soontobevisibleassets =... [cim startcachingimagesforassets:soontobevisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil]; NSArray *previouslyvisibleassets =... [cim stopcachingimagesforassets:previouslyvisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil];

97 PHCachingImageManager // Use the same args as for requestimageforasset PHCachingImageManager *cim = [self cachingimagemanager]; NSArray *soontobevisibleassets =... [cim startcachingimagesforassets:soontobevisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil]; NSArray *previouslyvisibleassets =... [cim stopcachingimagesforassets:previouslyvisibleassets targetsize:targetsize contentmode:phimagecontentmodeaspectfill options:nil];

98 Editing Images and Videos In-place No need to save as a new asset Nondestructive Visible everywhere Synced via icloud Photo Library

99 Editing Flow Input Image

100 Editing Flow Input Image

101 Editing Flow Your Code Input Image 30820bd806092a f70d010702a0 820bc930820bc b b0e03021a c06092a f70d010701a d b

102 Editing Flow Your Code Input Image

103 Editing Flow Your Code Output Image

104 Getting Input // Get the input from the asset [asset requestcontenteditinginputwithoptions:options completionhandler:^(phcontenteditinginput *editinginput, NSDictionary *info) { }

105 Getting Input // Get the input from the asset [asset requestcontenteditinginputwithoptions:options completionhandler:^(phcontenteditinginput *editinginput, NSDictionary *info) { NSURL *url = [editinginput fullsizeimageurl]; int orientation = [editinginput fullsizeimageorientation]; } CIImage *inputimage = [CIImage imagewithcontentsofurl:url options:nil]; inputimage = [inputimage imagebyapplyingorientation:orientation]; // Your code here

106 Saving Output // Create the output PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initwithcontenteditinginput:input]; [jpegdata writetourl:output.renderedcontenturl atomically:yes]; output.adjustmentdata = adjustmentdata;

107 Saving Output // Create the output PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initwithcontenteditinginput:input]; [jpegdata writetourl:output.renderedcontenturl atomically:yes]; output.adjustmentdata = adjustmentdata; // Save the output to the asset [library performchanges:^{ PHAssetChangeRequest *request =... [request setcontenteditingoutput:contenteditingoutput]; } completionhandler:^(bool success, NSError *error) {}];

108 Resumable Edits

109 Resumable Edits + = Noir, 100% Adjustment Data

110 Resumable Edits Input + = Noir, 100% Adjustment Data

111 Resumable Edits Input + = Noir, 100% Adjustment Data Output

112 Saving Adjustment Data NSData *archiveddata = [NSKeyedArchiver archiveddatawithrootobject:settings]; PHAdjustmentData *adjustmentdata = [[PHAdjustmentData alloc] initwithformatidentifier:@"com.mycompany" formatversion:@"1.0" data:archiveddata]; PHContentEditingOutput *output =... output.adjustmentdata = adjustmentdata;

113 Adjustment Data PHContentEditingInputRequestOptions *options = // Do you understand the current adjustment options.canhandleadjustmentdata:^bool(phadjustmentdata *adjustmentdata) { }

114 Adjustment Data PHContentEditingInputRequestOptions *options = // Do you understand the current adjustment options.canhandleadjustmentdata:^bool(phadjustmentdata *adjustmentdata) { return [adjustmentdata.formatidentifier isequal:@"com.mycompany"] && [adjustmentdata.formatversion isequal:@"1.0"]; }

115 Adjustment Understood? Yes Input + = Noir, 100% Adjustment Data

116 Adjustment Understood? No. Input + = Noir, 100% Adjustment Data

117 Demo

118 Photo Editing Extensions PhotosUI framework Simon Bovet ios Photos Frameworks

119 Photo Editing Extension Your image or video editor Available from built-in Photos and Camera apps

120

121

122

123

124 What s Needed App extension target UIViewController subclass Protocol adoption

125 What s Needed App extension target UIViewController subclass Protocol adoption

126 Xcode Template Add new target to your app s project Choose Photo Editing Extension

127 User Interface Navigation bar displayed by Photos app Avoid navigation bar-based design for your extension Your extension s UI

128 What s Needed App extension target UIViewController subclass Protocol adoption

129 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting

130 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting

131 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting

132 Getting Input - (void)startcontenteditingwithinput:(phcontenteditinginput *)input placeholderimage:(uiimage *)placeholderimage { UIImage *image = input.displaysizeimage; id settings = [self settingsfromadjustmentdata:input.adjustmentdata]; if (settings) { settings = [self defaultsettings]; }... // set up user interface } self.input = input;

133 Getting Input - (void)startcontenteditingwithinput:(phcontenteditinginput *)input placeholderimage:(uiimage *)placeholderimage { UIImage *image = input.displaysizeimage; id settings = [self settingsfromadjustmentdata:input.adjustmentdata]; if (settings) { settings = [self defaultsettings]; }... // set up user interface } self.input = input;

134 Getting Input - (void)startcontenteditingwithinput:(phcontenteditinginput *)input placeholderimage:(uiimage *)placeholderimage { UIImage *image = input.displaysizeimage; id settings = [self settingsfromadjustmentdata:input.adjustmentdata]; if (settings) { settings = [self defaultsettings]; }... // set up user interface } self.input = input;

135 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting Your extension s UI

136 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting Your extension s UI

137 Saving Output - (void)finishcontenteditingwithcompletionhandler: (void (^)(PHContentEditingOutput *))completionhandler { NSData *jpegdata =...; PHAdjustmentData *adjustmentdata =...; PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initwithcontenteditinginput:self.input]; [jpegdata writetourl:output.renderedcontenturl atomically:yes]; output.adjustmentdata = adjustmentdata; } completionhandler(output);

138 Saving Output - (void)finishcontenteditingwithcompletionhandler: (void (^)(PHContentEditingOutput *))completionhandler { NSData *jpegdata =...; PHAdjustmentData *adjustmentdata =...; PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initwithcontenteditinginput:self.input]; [jpegdata writetourl:output.renderedcontenturl atomically:yes]; output.adjustmentdata = adjustmentdata; } completionhandler(output);

139 Saving Output - (void)finishcontenteditingwithcompletionhandler: (void (^)(PHContentEditingOutput *))completionhandler { NSData *jpegdata =...; PHAdjustmentData *adjustmentdata =...; PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initwithcontenteditinginput:self.input]; [jpegdata writetourl:output.renderedcontenturl atomically:yes]; output.adjustmentdata = adjustmentdata; } completionhandler(output);

140 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting

141 Resuming Edits - (BOOL)canHandleAdjustmentData:(PHAdjustmentData *)adjustmentdata { return [adjustmentdata.formatidentifier isequal:@"com.mycompany"] && [adjustmentdata.formatversion isequal:@"1.0"]; }

142 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting Your extension s UI

143 Protocol Adoption PHContentEditingController startcontenteditingwithinput: finishcontenteditingwithcompletionhandler: canhandleadjustmentdata: cancelcontentediting Your extension s UI

144 What s Needed App extension target UIViewController subclass Protocol adoption

145 Demo

146 Summary Photos framework Access photos and videos Build a full-featured app like the Photos app Photo editing extensions

147 More Information Allan Schaffer Graphics and Game Technologies Evangelist Documentation Photos Reference Apple Developer Forums

148 Related Sessions Creating Extensions for ios and OS X, Part One Mission Tuesday 2:00PM Creating Extensions for ios and OS X, Part Two Mission Wednesday 11:30AM Camera Capture: Manual Controls Marina Wednesday 11:30AM Advances in Core Image Pacific Heights Thursday 2:00PM Developing Core Image Filters for ios Pacific Heights Thursday 3:15PM

149 Labs Photos Framework Lab Media Lab A Thursday 11:30AM Extensions Lab Frameworks Lab B Thursday 2:00PM Photos Framework Lab Media Lab B Friday 10:15AM

150

Using and Extending the Xcode Source Editor

Using and Extending the Xcode Source Editor Developer Tools #WWDC16 Using and Extending the Xcode Source Editor Session 414 Mike Swingler Xcode Infrastructure and Editors Chris Hanson Xcode Infrastructure and Editors 2016 Apple Inc. All rights reserved.

More information

Seamless Linking to Your App

Seamless Linking to Your App App Frameworks #WWDC15 Seamless Linking to Your App Session 509 Conrad Shultz Safari and WebKit Software Engineer Jonathan Grynspan Core Services Software Engineer 2015 Apple Inc. All rights reserved.

More information

Game Center Techniques, Part 1

Game Center Techniques, Part 1 Game Center Techniques, Part 1 Get Your Game On Gabriel Belinsky Senior Software Engineer 2 Game Center Friends Leaderboards Achievements Multiplayer gaming 3 What You ll Learn Game Center API basics Authenticate

More information

Extending Your Apps with SiriKit

Extending Your Apps with SiriKit App Frameworks #WWDC16 Extending Your Apps with SiriKit Session 225 Vineet Khosla SiriKit Engineering Diana Huang SiriKit Engineering Scott Andrus SiriKit Engineering 2016 Apple Inc. All rights reserved.

More information

What s New in Xcode App Signing

What s New in Xcode App Signing Developer Tools #WWDC16 What s New in Xcode App Signing Developing and distributing Session 401 Joshua Pennington Tools Engineering Manager Itai Rom Tools Engineer 2016 Apple Inc. All rights reserved.

More information

Kevin van Vechten Core OS

Kevin van Vechten Core OS Kevin van Vechten Core OS 2 3 Bill Bumgarner 4 (lambda (a) (add a d)) 10 timesrepeat:[pen turn:d; draw] z.each { val puts(val + d.to_s)} repeat(10, ^{ putc('0'+ d); }); 5 6 7 8 ^ 9 [myset objectspassingtest:

More information

Cross Platform Nearby Networking

Cross Platform Nearby Networking Core OS #WWDC14 Cross Platform Nearby Networking Session 709 Demijan Klinc Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What s New in CloudKit

What s New in CloudKit System Frameworks #WWDC15 What s New in CloudKit Session 704 Olivier Bonnet icloud Client Eric Krugler icloud Server 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

CloudKit Tips And Tricks

CloudKit Tips And Tricks System Frameworks #WWDC15 CloudKit Tips And Tricks Session 715 Nihar Sharma CloudKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Creating Extensions for ios and OS X, Part Two

Creating Extensions for ios and OS X, Part Two Frameworks #WWDC14 Creating Extensions for ios and OS X, Part Two Architecture Session 217 Damien Sorresso Overloaded Operator 2014 Apple Inc. All rights reserved. Redistribution or public display not

More information

Data Delivery with Drag and Drop

Data Delivery with Drag and Drop Session App Frameworks #WWDC17 Data Delivery with Drag and Drop 227 Dave Rahardja, UIKit Tanu Singhal, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility Frameworks #WWDC14 Accessibility on ios Developing for everyone Session 210 Clare Kasemset ios Accessibility 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together Session Media #WWDC17 Vision Framework Building on Core ML 506 Brett Keating, Apple Manager Frank Doepke, He who wires things together 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer App Frameworks #WWDC16 What s New in tvos Session 206 Hans Kim tvos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Welcome

More information

Address Book for iphone

Address Book for iphone Address Book for iphone The people s framework Alexandre Aybes iphone Software Engineer 2 3 Address Book for iphone The people s framework Alexandre Aybes iphone Software Engineer 4 What We Will Cover

More information

Accessibility on OS X

Accessibility on OS X Frameworks #WWDC14 Accessibility on OS X New Accessibility API Session 207 Patti Hoa Accessibility Engineer! Chris Dolan Accessibility Engineer 2014 Apple Inc. All rights reserved. Redistribution or public

More information

WatchKit In-Depth, Part 2

WatchKit In-Depth, Part 2 App Frameworks #WWDC15 WatchKit In-Depth, Part 2 Session 208 Nathan de Vries watchos Engineer Chloe Chang watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer Featured #WWDC15 Building Watch Apps Session 108 Neil Desai watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda

More information

Introducing the Modern WebKit API

Introducing the Modern WebKit API Frameworks #WWDC14 Introducing the Modern WebKit API Session 206 Anders Carlsson Safari and WebKit Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Advances in AVFoundation Playback

Advances in AVFoundation Playback Media #WWDC16 Advances in AVFoundation Playback Waiting, looping, switching, widening, optimizing Session 503 Sam Bushell Media Systems Architect 2016 Apple Inc. All rights reserved. Redistribution or

More information

App Extension Best Practices

App Extension Best Practices App Frameworks #WWDC15 App Extension Best Practices Session 224 Sophia Teutschler UIKit Engineer Ian Baird CoreOS Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What s New in Metal, Part 2

What s New in Metal, Part 2 Graphics and Games #WWDC15 What s New in Metal, Part 2 Session 607 Dan Omachi GPU Software Frameworks Engineer Anna Tikhonova GPU Software Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

Working with Metal Overview

Working with Metal Overview Graphics and Games #WWDC14 Working with Metal Overview Session 603 Jeremy Sandmel GPU Software 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software Frameworks #WWDC14 Introducing CloudKit A how-to guide for icloud for your Apps Session 208 Olivier Bonnet CloudKit Client Software 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

Advanced Debugging and the Address Sanitizer

Advanced Debugging and the Address Sanitizer Developer Tools #WWDC15 Advanced Debugging and the Address Sanitizer Finding your undocumented features Session 413 Mike Swingler Xcode UI Infrastructure Anna Zaks LLVM Program Analysis 2015 Apple Inc.

More information

What s New in NSCollectionView Session 225

What s New in NSCollectionView Session 225 App Frameworks #WWDC15 What s New in NSCollectionView Session 225 Troy Stephens Application Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Introducing the Contacts Framework

Introducing the Contacts Framework App Frameworks #WWDC15 Introducing the Contacts Framework For OS X, ios, and watchos Session 223 Bruce Stadnyk ios Contacts Engineer Dave Dribin OS X Contacts Engineer Julien Robert ios Contacts Engineer

More information

Enhancing your apps for the next dimension of touch

Enhancing your apps for the next dimension of touch App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights

More information

What's New in Core Spotlight

What's New in Core Spotlight Session System Frameworks #WWDC17 What's New in Core Spotlight Search on macos and ios 231 John Hörnkvist, Spotlight Lyn Fong, Spotlight 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Quick Interaction Techniques for watchos

Quick Interaction Techniques for watchos App Frameworks #WWDC16 Quick Interaction Techniques for watchos Session 211 Tom Witkin watchos Engineer Miguel Sanchez watchos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Implementing UI Designs in Interface Builder

Implementing UI Designs in Interface Builder Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

What s New in Notifications

What s New in Notifications System Frameworks #WWDC15 What s New in Notifications Session 720 Michele Campeotto ios Notifications Gokul Thirumalai Apple Push Notification Service 2015 Apple Inc. All rights reserved. Redistribution

More information

Mastering UIKit on tvos

Mastering UIKit on tvos App Frameworks #WWDC16 Mastering UIKit on tvos Session 210 Justin Voss UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Building a Game with SceneKit

Building a Game with SceneKit Graphics and Games #WWDC14 Building a Game with SceneKit Session 610 Amaury Balliet Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Developing Applications for ios

Developing Applications for ios Developing Applications for ios Lab 10: Nearby Deals (6 of 6) Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Task 1 Task: Save the favorite deals

More information

What s New in imessage Apps

What s New in imessage Apps Session App Frameworks #WWDC17 What s New in imessage Apps 234 Eugene Bistolas, Messages Engineer Jay Chae, Messages Engineer Stephen Lottermoser, Messages Engineer 2017 Apple Inc. All rights reserved.

More information

CS193P - Lecture 16. iphone Application Development. Audio APIs Video Playback Displaying Web Content Settings

CS193P - Lecture 16. iphone Application Development. Audio APIs Video Playback Displaying Web Content Settings CS193P - Lecture 16 iphone Application Development Audio APIs Video Playback Displaying Web Content Settings 1 Today s Topics Audio APIs Video Playback Settings Bundles 2 Audio Playback 3 Uses for Audio

More information

Adopting Advanced Features of the New UI

Adopting Advanced Features of the New UI Frameworks #WWDC14 Adopting Advanced Features of the New UI Session 220 Chris Dreessen AppKit Software Engineer! Corbin Dunn AppKit Software Engineer 2014 Apple Inc. All rights reserved. Redistribution

More information

Monetize and Promote Your App with iad

Monetize and Promote Your App with iad Media #WWDC15 Monetize and Promote Your App with iad From design to launch Session 503 Carol Teng Shashank Phadke 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer Session App Frameworks #WWDC17 Advances in TVMLKit 202 Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Finding Bugs Using Xcode Runtime Tools

Finding Bugs Using Xcode Runtime Tools Session Developer Tools #WWDC17 Finding Bugs Using Xcode Runtime Tools 406 Kuba Mracek, Program Analysis Engineer Vedant Kumar, Compiler Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Getting the Most out of Playgrounds in Xcode

Getting the Most out of Playgrounds in Xcode #WWDC18 Getting the Most out of Playgrounds in Xcode Session 402 Tibet Rooney-Rabdau, Xcode Engineer Alex Brown, Core OS Engineer TJ Usiyan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

Introducing On Demand Resources

Introducing On Demand Resources App Frameworks #WWDC15 Introducing On Demand Resources An element of App Thinning Session 214 Steve Lewallen Frameworks Engineering Tony Parker Cocoa Frameworks 2015 Apple Inc. All rights reserved. Redistribution

More information

Mastering Xcode for iphone OS Development Part 1. Todd Fernandez Sr. Manager, IDEs

Mastering Xcode for iphone OS Development Part 1. Todd Fernandez Sr. Manager, IDEs Mastering Xcode for iphone OS Development Part 1 Todd Fernandez Sr. Manager, IDEs 2 3 Customer Reviews Write a Review Current Version (1) All Versions (24) Gorgeous and Addictive Report a Concern by Play

More information

Getting the Most Out of HealthKit

Getting the Most Out of HealthKit App Frameworks #WWDC16 Getting the Most Out of HealthKit What s new and best practices Session 209 Matthew Salesi ios Software Engineer Joefrey Kibuule ios Software Engineer 2016 Apple Inc. All rights

More information

Creating Complications with ClockKit Session 209

Creating Complications with ClockKit Session 209 App Frameworks #WWDC15 Creating Complications with ClockKit Session 209 Eliza Block watchos Engineer Paul Salzman watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in SpriteKit

What s New in SpriteKit Graphics and Games #WWDC16 What s New in SpriteKit Session 610 Ross Dexter Games Technologies Engineer Clément Boissière Games Technologies Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

What s New in watchos

What s New in watchos Session App Frameworks #WWDC17 What s New in watchos 205 Ian Parks, watchos Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217 App Frameworks #WWDC16 Introducing SiriKit Hey Siri, say hello to apps Session 217 Robby Walker SiriKit Engineering Brandon Newendorp SiriKit Engineering Corey Peterson SiriKit Design 2016 Apple Inc. All

More information

Power, Performance, and Diagnostics

Power, Performance, and Diagnostics Core OS #WWDC14 Power, Performance, and Diagnostics What's new in GCD and XPC Session 716 Daniel Steffen Darwin Runtime Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not

More information

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music Session Media #WWDC17 Introducing MusicKit 502 Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

What's New in Foundation Networking

What's New in Foundation Networking Core OS #WWDC14 What's New in Foundation Networking Session 707 Steve Algernon Senior Wrangler 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Improving your Existing Apps with Swift

Improving your Existing Apps with Swift Developer Tools #WWDC15 Improving your Existing Apps with Swift Getting Swifty with It Session 403 Woody L. in the Sea of Swift 2015 Apple Inc. All rights reserved. Redistribution or public display not

More information

Editing Media with AV Foundation

Editing Media with AV Foundation Editing Media with AV Foundation Overview and best practices Eric Lee iphone Engineering 2 What You ll Learn Why and when you should use AV Foundation editing Concepts underlying manipulation of timed-based

More information

Networking with NSURLSession

Networking with NSURLSession System Frameworks #WWDC15 Networking with NSURLSession Session 711 Luke Case Software Engineer Andreas Garkuscha Software Engineer Dan Vinegrad Software Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

New UIKit Support for International User Interfaces

New UIKit Support for International User Interfaces App Frameworks #WWDC15 New UIKit Support for International User Interfaces Session 222 Sara Radi Internationalization Software Engineer Aaltan Ahmad Internationalization Software Engineer Paul Borokhov

More information

Mobile Application Development

Mobile Application Development Mobile Application Development Lecture 17 Blocks, Concurrency, Networking 2013/2014 Parma Università degli Studi di Parma Lecture Summary Blocks Concurrency and multithreading Grand Central Dispatch (GCD)

More information

Adapting to the New UI of OS X Yosemite

Adapting to the New UI of OS X Yosemite Frameworks #WWDC14 Adapting to the New UI of OS X Yosemite Session 209 Mike Stern User Experience Evangelist! Rachel Goldeen Cocoa Software Engineer! Patrick Heynen Cocoa Engineering Manager 2014 Apple

More information

Creating Audio Apps for watchos

Creating Audio Apps for watchos Session #WWDC18 Creating Audio Apps for watchos 504 Neil Desai, watchos Frameworks Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Creating Content with iad JS

Creating Content with iad JS Creating Content with iad JS Part 2 The iad JS Framework Antoine Quint iad JS Software Engineer ios Apps and Frameworks 2 Agenda Motivations and Features of iad JS Core JavaScript Enhancements Working

More information

Creating Great App Previews

Creating Great App Previews Services #WWDC14 Creating Great App Previews Session 304 Paul Turner Sr. Operations Manager itunes Digital Supply Chain Engineering 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in Core Data?

What s New in Core Data? Session App Frameworks #WWDC17 What s New in Core? Persisting since 2004 210 Melissa Turner, Core Engineer Rishi Verma, Core Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Working With Metal Advanced

Working With Metal Advanced Graphics and Games #WWDC14 Working With Metal Advanced Session 605 Gokhan Avkarogullari GPU Software Aaftab Munshi GPU Software Serhat Tekin GPU Software 2014 Apple Inc. All rights reserved. Redistribution

More information

What s New in TVMLKit

What s New in TVMLKit #WWDC18 What s New in TVMLKit Session 238 Jeremy Foo, tvos Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Web Inspector

More information

Enabling Your App for CarPlay

Enabling Your App for CarPlay Session App Frameworks #WWDC17 Enabling Your App for CarPlay 719 Albert Wan, CarPlay Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Thread Sanitizer and Static Analysis

Thread Sanitizer and Static Analysis Developer Tools #WWDC16 Thread Sanitizer and Static Analysis Help with finding bugs in your code Session 412 Anna Zaks Manager, Program Analysis Team Devin Coughlin Engineer, Program Analysis Team 2016

More information

What s New in Energy Debugging

What s New in Energy Debugging #WWDC18 What s New in Energy Debugging Phillip Azar, Apple/Battery Life David Choi, Apple/Battery Life 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Storyboards and Controllers on OS X

Storyboards and Controllers on OS X Frameworks #WWDC14 Storyboards and Controllers on OS X Contain yourself Session 212 Mike Swingler Interface Builder Engineer Raleigh Ledet AppKit Engineer 2014 Apple Inc. All rights reserved. Redistribution

More information

Your Apps and the Future of macos Security

Your Apps and the Future of macos Security #WWDC18 Your Apps and the Future of macos Security Pierre-Olivier Martel, Security Engineering Manager Kelly Yancey, OS Security Garrett Jacobson, Trusted Execution 2018 Apple Inc. All rights reserved.

More information

Localizing with Xcode 6

Localizing with Xcode 6 Tools #WWDC14 Localizing with Xcode 6 Best practices and new workflows Session 412 Zoltan Foley-Fisher Xcode Software Engineer! Chris Hanson Xcode Software Engineer 2014 Apple Inc. All rights reserved.

More information

Multitasking Support on the ios Platform

Multitasking Support on the ios Platform Multitasking Support on the ios Platform Priya Rajagopal Invicara (www.invicara.com) @rajagp Multitasking on ios? Multitasking allows apps to perform certain tasks in the background while you're using

More information

Content Protection for HTTP Live Streaming

Content Protection for HTTP Live Streaming Media #WWDC15 Content Protection for HTTP Live Streaming Session 502 Roger Pantos HTTP Live Streaming Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Mastering Xcode for iphone OS Development Part 2. Marc Verstaen Sr. Manager, iphone Tools

Mastering Xcode for iphone OS Development Part 2. Marc Verstaen Sr. Manager, iphone Tools Mastering Xcode for iphone OS Development Part 2 Marc Verstaen Sr. Manager, iphone Tools 2 Tale of Two Sessions Part 1: Orientation: Tour of complete development cycle Part 2: Mastery: Details of several

More information

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility App Frameworks #WWDC15 ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Using Grouped Notifications

Using Grouped Notifications #WWDC18 Using Grouped Notifications Session 711 Michele Campeotto, ios User Notifications 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Mysteries of Auto Layout, Part 1

Mysteries of Auto Layout, Part 1 App Frameworks #WWDC15 Mysteries of Auto Layout, Part 1 Session 218 Jason Yao Interface Builder Engineer Kasia Wawer ios Keyboards Engineer 2015 Apple Inc. All rights reserved. Redistribution or public

More information

Understanding Undefined Behavior

Understanding Undefined Behavior Session Developer Tools #WWDC17 Understanding Undefined Behavior 407 Fred Riss, Clang Team Ryan Govostes, Security Engineering and Architecture Team Anna Zaks, Program Analysis Team 2017 Apple Inc. All

More information

View Controller Advancements for ios8

View Controller Advancements for ios8 Frameworks #WWDC14 View Controller Advancements for ios8 Session 214 Bruce D. Nilo Manager, UIKit Fundamentals 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Designing Great Apple Watch Experiences

Designing Great Apple Watch Experiences Design #WWDC16 Designing Great Apple Watch Experiences Session 804 Mike Stern User Experience Evangelist 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Introduction to Siri Shortcuts

Introduction to Siri Shortcuts #WWDC8 Introduction to Siri Shortcuts Session 2 Ari Weinstein, Siri Willem Mattelaer, Siri 208 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What s New in SpriteKit

What s New in SpriteKit Graphics and Games #WWDC14 What s New in SpriteKit Session 606 Norman Wang Game Technologies 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011 Developing Applications for ios Today icloud Sharing documents among a user s devices Fundamentally: nothing more than a URL of a shared directory However, since it is over the network, there are lots

More information

ArcGIS Runtime SDK for Java: A Beginner s Guide. Mark Baird JC Malott

ArcGIS Runtime SDK for Java: A Beginner s Guide. Mark Baird JC Malott ArcGIS Runtime SDK for Java: A Beginner s Guide Mark Baird JC Malott Outline Intro to ArcGIS Runtime SDKs Get started: download and install the SDK Tour of the functionality of the API Basics of building

More information

Managing Documents In Your ios Apps

Managing Documents In Your ios Apps Session #WWDC18 Managing Documents In Your ios Apps 216 Brandon Tennant, Software Engineer Thomas Deniau, Software Engineer Rony Fadel, Software Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

Advanced Notifications

Advanced Notifications System Frameworks #WWDC16 Advanced Notifications Session 708 Michele Campeotto ios Notifications 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Building Apps with Dynamic Type

Building Apps with Dynamic Type Session App Frameworks #WWDC17 Building Apps with Dynamic Type 245 Clare Kasemset, Software Engineering Manager Nandini Sundar, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Media and Gaming Accessibility

Media and Gaming Accessibility Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010 Developing Applications for iphone 4, ipod Touch, & ipad Today Blocks Language syntax for declaring a function on the fly. Grand Central Dispatch C API for leveraging blocks to make writing multithreaded

More information

Using HTML5 Offline Storage. Brady Eidson Safari and WebKit Engineer

Using HTML5 Offline Storage. Brady Eidson Safari and WebKit Engineer Using HTML5 Offline Storage Brady Eidson Safari and WebKit Engineer 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 So what can I do without the cloud? 22 What You ll Learn Make apps accessible offline

More information

What s New in Core Location

What s New in Core Location Core OS What s New in Core Location Session 706 Stephen Rhee Engineering Manager 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

More information

What s New in SiriKit

What s New in SiriKit Session App Frameworks #WWDC17 What s New in SiriKit 214 Sirisha Yerroju, SiriKit Engineer Tin Tran, SiriKit Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Building Faster in Xcode

Building Faster in Xcode #WWDC18 Building Faster in Xcode Session 408 David Owens, Xcode Engineer Jordan Rose, Swift Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Contents. iphone Training. Industry Trainers. Classroom Training Online Training ON-DEMAND Training. Read what you need

Contents. iphone Training. Industry Trainers. Classroom Training Online Training ON-DEMAND Training. Read what you need iphone Training Contents About iphone Training Our ios training classes can help you get off to a running start in iphone, ipod and ipad app development. Learn from expert Objective-C developers with years

More information

What s New in Core Image

What s New in Core Image Media #WWDC15 What s New in Core Image Session 510 David Hayward Engineering Manager Tony Chu Engineer Alexandre Naaman Lead Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display

More information

CarPlay Audio and Navigation Apps

CarPlay Audio and Navigation Apps #WWDC18 CarPlay Audio and Navigation Apps Tunes and turns Jonathan Hersh, ios Car Experience Albert Wan, ios Car Experience Mike Knippers, ios Car Experience 2018 Apple Inc. All rights reserved. Redistribution

More information

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010 Developing Applications for iphone 4, ipod Touch, & ipad Today More Core Data What does the code for the custom NSManagedObject subclasses generated by Xcode look like? Querying for (fetching) objects

More information

Optimizing Swift Performance Session 409

Optimizing Swift Performance Session 409 Developer Tools #WWDC15 Optimizing Swift Performance Session 409 Nadav Rotem Manager, Swift Performance Team Michael Gottesman Engineer, Swift Performance Team Joe Grzywacz Engineer, Performance Tools

More information

Designing for Apple Watch

Designing for Apple Watch Design #WWDC15 Designing for Apple Watch Session 802 Mike Stern User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Advanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer

Advanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer Advanced Cocoa Text Tips and Tricks Aki Inoue Cocoa Engineer 2 Introduction Only on Mac OS Diving deeper Understanding the layout process Getting comfortable with extending and customizing base functionalities

More information

Creating Extensions for Safari

Creating Extensions for Safari Creating Extensions for Safari Part One Timothy Hatcher Safari and WebKit Engineer 2 3 HTML5 CSS3 JavaScript Native Code 4 Cross Platform Secure Crashes 5 What You ll Learn When to make a Safari Extension

More information