Cross Platform Nearby Networking
|
|
- Noah Randall
- 5 years ago
- Views:
Transcription
1 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 from Apple.
2
3
4
5
6
7 itranslate Voice
8
9
10
11 Metronome Touch
12 Firechat
13
14
15
16
17
18 Agenda Basics Multipeer Connectivity on OS X Best Practices Custom Discovery Authentication
19 Basics
20 Wireless Technologies ios
21 Wireless Technologies OSX
22
23 Devices with Lightning connector Starts with 2012 Macs
24 Devices with Lightning connector Starts with 2012 Macs
25 Terminology Nearby Within range of supported wireless technologies Peer Nearby device Advertiser Device discoverable by other nearby devices Browser Device searching for other nearby devices
26 Discovery Session MCBrowserViewController MCAdvertiserAssistant MCNearbyServiceBrowser MCNearbyServiceAdvertiser MCPeerID MCSession
27 Discovery Session MCBrowserViewController MCAdvertiserAssistant MCNearbyServiceBrowser MCNearbyServiceAdvertiser MCPeerID MCSession
28 Discovery UI-based MCPeerID MCBrowserViewController MCAdvertiserAssistant!
29 PeerID PeerID Session Session Browser View Controller Advertiser Assistant Browser Advertiser
30 PeerID PeerID Session Session Browser View Controller Advertiser Assistant Browser Advertiser
31 PeerID PeerID Session Session Browser View Controller Advertiser Assistant Browser Advertiser
32 PeerID PeerID Session Session Browser View Controller Advertiser Assistant Browser Advertiser
33 peer:didchangestate: peer:didchangestate: PeerID PeerID Session Session Browser View Controller Advertiser Assistant Browser Advertiser
34 Discovery UI-based MCPeerID MCBrowserViewController MCAdvertiserAssistant Programmatic! MCPeerID MCNearbyServiceBrowser MCNearbyServiceAdvertiser
35 PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
36 PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
37 PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
38 startbrowsingforpeers startadvertisingpeer PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
39 foundpeer: PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
40 invitepeer: PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
41 invitepeer: PeerID PeerID Session Invite Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
42 didreceiveinvitationfrompeer: PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
43 didreceiveinvitationfrompeer: PeerID PeerID Session Accept message Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
44 peer:didchangestate: peer:didchangestate: PeerID PeerID Session Session Nearby Service Browser Nearby Service Advertiser Browser Advertiser
45 Discovery Session MCBrowserViewController MCAdvertiserAssistant MCNearbyServiceBrowser MCNearbyServiceAdvertiser MCPeerID MCSession
46 Discovery Session MCBrowserViewController MCAdvertiserAssistant MCNearbyServiceBrowser MCNearbyServiceAdvertiser MCPeerID MCSession
47 Session Data Session Session
48 Session Data Session Session
49 Session MCPeerID, MCSession Messages Streaming Resources
50 Messages Send [session senddata:data topeers:peerids withmode:mode error:&error]; Receive - (void) session:(mcsession *)session didreceivedata:(nsdata *)data frompeer:(mcpeerid *)peerid;
51 Messages Send [session senddata:data topeers:peerids withmode:mode error:&error]; Receive - (void) session:(mcsession *)session didreceivedata:(nsdata *)data frompeer:(mcpeerid *)peerid;
52 Streaming Start a stream NSOutputStream *outputstream = [session startstreamwithname:name topeer:peerid error:&error]; Receive a stream - (void) session:(mcsession *)session didreceivestream:(nsinputstream *)inputstream withname:(nsstring *)name frompeer:(mcpeerid *)peerid;
53 Streaming Start a stream NSOutputStream *outputstream = [session startstreamwithname:name topeer:peerid error:&error]; Receive a stream - (void) session:(mcsession *)session didreceivestream:(nsinputstream *)inputstream withname:(nsstring *)name frompeer:(mcpeerid *)peerid;
54 Resources Send NSProgress *progress = [session sendresourceaturl:url withname:name topeer:peerid completionhandler:completionhandler];
55 Resources Start receiving resource - (void) session:(mcsession *)session didstartreceivingresourcewithname:(nsstring *)name frompeer:(mcpeerid *)peerid withprogress:(nsprogress *)progress; Finish receiving resource - (void) session:(mcsession *)session didfinishreceivingresourcewithname:(nsstring *)name frompeer:(mcpeerid *)peerid aturl:(nsurl *)localurl witherror:(nserror *)error;
56 Resources Start receiving resource - (void) session:(mcsession *)session didstartreceivingresourcewithname:(nsstring *)name frompeer:(mcpeerid *)peerid withprogress:(nsprogress *)progress; Finish receiving resource - (void) session:(mcsession *)session didfinishreceivingresourcewithname:(nsstring *)name frompeer:(mcpeerid *)peerid aturl:(nsurl *)localurl witherror:(nserror *)error;
57 Summary Discovery phase and session phase UI-based and Programmatic discovery Send data API Messages, streaming, and resources More in-depth info in last year s talk
58 Multipeer Connectivity on OS X
59 Demijan
60 Demijan
61
62 Gabe
63 Gabe
64 Gabe
65 Gabe
66 Invite Gabe
67 Invite Gabe
68 Gabe
69 Gabe
70 Gabe
71 Accept Gabe
72 Demijan Gabe
73 Demijan Gabe
74 Demijan Gabe
75 Data Demijan Gabe
76 MCAdvertiserAssistant OS X // initialize MCAdvertiserAssistant *assistant = [[MCAdvertiserAssistant alloc] initwithservicetype:type discoveryinfo:nil session:session];
77 MCAdvertiserAssistant OS X // initialize MCAdvertiserAssistant *assistant = [[MCAdvertiserAssistant alloc] initwithservicetype:type discoveryinfo:nil session:session];! // start advertising [assistant start];
78 MCBrowserViewController OS X Subclasses NSViewController // initialize, set delegate MCBrowserViewController *browservc = [[MCBrowserViewController] alloc] initwithservicetype:servicetype session:session]; browservc.delegate = self;
79 MCBrowserViewController OS X Subclasses NSViewController // initialize, set delegate MCBrowserViewController *browservc = [[MCBrowserViewController] alloc] initwithservicetype:servicetype session:session]; browservc.delegate = self;! Present modally as a sheet // present [self presentviewcontrollerassheet:browservc];
80 MCBrowserViewController OS X // NSWindow based App self.bvcwindow = [NSWindow windowwithcontentviewcontroller:self.browserviewcontroller]; [NSApp beginsheet:self.bvcwindow modalforwindow:[nsapp mainwindow] modaldelegate:nil didendselector:null contextinfo:null];
81 MCBrowserViewController OS X // NSWindow based App self.bvcwindow = [NSWindow windowwithcontentviewcontroller:self.browserviewcontroller]; [NSApp beginsheet:self.bvcwindow modalforwindow:[nsapp mainwindow] modaldelegate:nil didendselector:null contextinfo:null];
82 MCBrowserViewControllerDelegate OS X // done button tapped - (void)browserviewcontrollerdidfinish: (MCBrowserViewController *)browservc { [self dismissviewcontroller:browservc]; }! // cancel button tapped - (void)browserviewcontrollerwascancelled: (MCBrowserViewController *)browservc { [self dismissviewcontroller:browservc]; }
83 Entitlements
84 Entitlements
85 Entitlements
86 Data
87 Demo Eric Chien Software Engineer
88 Summary API same as ios OS X specific presentation of the MCBrowserViewController Networking entitlements
89 Best Practices
90 PeerID [Mac] PeerID Advertiser Browser
91 PeerID [Mac] PeerID Advertiser Browser PeerID [Mac]
92 PeerID Browser PeerID [Mac]
93 PeerID Browser PeerID [Mac]
94 PeerID [Mac] PeerID Advertiser Browser PeerID [Mac]
95 PeerID [Mac] PeerID Advertiser Browser PeerID [Mac] PeerID [Mac]
96 Reuse Peer Objects PeerID [Mac] PeerID Advertiser Browser PeerID [Mac]
97 Reuse Peer Objects Serialize, store in defaults NSUserDefaults *defaults = [NSUserDefaults standarduserdefaults]; NSData *peeriddata = [NSKeyedArchiver archiveddatawithrootobject:peerid]; [defaults setobject:peeriddata forkey:kpeeridkey]; [defaults synchronize];
98 Reuse Peer Objects Serialize, store in defaults NSUserDefaults *defaults = [NSUserDefaults standarduserdefaults]; NSData *peeriddata = [NSKeyedArchiver archiveddatawithrootobject:peerid]; [defaults setobject:peeriddata forkey:kpeeridkey]; [defaults synchronize];! Deserialize, retrieve from defaults NSUserDefaults *defaults = [NSUserDefaults standarduserdefaults]; NSData *peeriddata = [defaults dataforkey:kpeeridkey]; MCPeerID *peerid = [NSKeyedUnarchiver unarchiveobjectwithdata:peeriddata];
99 Auto-inviting PeerID [Mac] PeerID Browser Browser Advertiser Advertiser
100 Auto-inviting PeerID [Mac] PeerID Browser Browser Advertiser Advertiser PeerID PeerID foundpeer: foundpeer:
101 Auto-inviting Use a deterministic algorithm to determine who should invite - (void)browser:(mcnearbyservicebrowser *)browser foundpeer: (MCPeerID *)nearbypeerid withdiscoveryinfo:(nsdictionary *)info { // compare hash values if (mypeerid.hash > nearbypeerid.hash) { [self.browser invitepeer:nearbypeerid tosession:session withcontext:nil timeout:0]; } }
102 Discovery Info (Bonjour TXT Records) // MCAdvertiserAssistant MCAdvertiserAssistant *assistant = [[MCAdvertiserAssistant alloc] initwithservicetype:type discoveryinfo:info session:session]; // MCNearbyServiceAdvertiser MCNearbyServiceAdvertiser *advertiser = [[MCNearbyServiceAdvertiser alloc] initwithpeerid:mypeerid servicetype:type! discoveryinfo:info];
103 Discovery Info (Bonjour TXT Records) Keep discovery info small Both keys and values must be NSString TXT record entry key=value Maximum size for each TXT record entry 256 bytes More details
104 Custom Discovery
105 Discovery Phase UI-based MCPeerID MCBrowserViewController MCAdvertiserAssistant Programmatic! MCPeerID MCNearbyServiceBrowser MCNearbyServiceAdvertiser
106 Discovery UI-based MCPeerID MCBrowserViewController MCAdvertiserAssistant Programmatic! Custom! MCPeerID MCNearbyServiceBrowser MCNearbyServiceAdvertiser MCPeerID MCSession
107 Discover and Establish a Channel Data
108 Peer ID Step 1 Serialize and exchange PeerID PeerID Session Session
109 Peer ID Step 1 Serialize and exchange PeerID PeerID Session Serialized PeerID Session Serialized PeerID [NSKeyedArchiver archiveddatawithrootobject:]
110 Peer ID Step 1 Serialize and exchange PeerID PeerID Session Serialized PeerID Session Serialized PeerID [NSKeyedArchiver archiveddatawithrootobject:]
111 Peer ID Step 1 Serialize and exchange PeerID PeerID Session Session PeerID PeerID [NSKeyedUnarchiver unarchiveobjectwithdata:]
112 Peer ID Step 2 Create and exchange PeerID PeerID Session Session PeerID PeerID [MCSession nearbyconnectiondataforpeer:withcompletionhandler:]
113 Peer ID Step 2 Create and exchange PeerID PeerID Session Session PeerID PeerID Connection Data for iphone Connection Data for Mac [MCSession nearbyconnectiondataforpeer:withcompletionhandler:]
114 Peer ID Step 2 Create and exchange PeerID PeerID Session Session PeerID PeerID Connection Data for Mac Connection Data for iphone [MCSession nearbyconnectiondataforpeer:withcompletionhandler:]
115 Connect Peer PeerID PeerID Session Session PeerID PeerID Connection Data for Mac Connection Data for iphone [MCSession connectpeer:withconnectiondata:]
116 Connect Peer peer:didchangestate: peer:didchangestate: PeerID PeerID Session Session PeerID PeerID Connection Data for Mac Connection Data for iphone [MCSession connectpeer:withconnectiondata:]
117 Custom Discovery APIs Serialize NSData *peeriddata = [NSKeyedArchiver archiveddatawithrootobject:peerid]; Deserialize MCPeerID *peerid = [NSKeyedUnarchiver unarchiveobjectwithdata:peeriddata];
118 Custom Discovery APIs Serialize NSData *peeriddata = [NSKeyedArchiver archiveddatawithrootobject:peerid]; Deserialize MCPeerID *peerid = [NSKeyedUnarchiver unarchiveobjectwithdata:peeriddata];
119 Custom Discovery APIs Serialize NSData *peeriddata = [NSKeyedArchiver archiveddatawithrootobject:peerid]; Deserialize MCPeerID *peerid = [NSKeyedUnarchiver unarchiveobjectwithdata:peeriddata];
120 Custom Discovery APIs Get nearby connection data [session nearbyconnectiondataforpeer:peerid withcompletionhandler:^(nsdata *connectiondata, NSError *error) { // send connection data to nearby peer }];
121 Custom Discovery APIs Get nearby connection data [session nearbyconnectiondataforpeer:peerid withcompletionhandler:^(nsdata *connectiondata, NSError *error) { // send connection data to nearby peer }];
122 Custom Discovery APIs Connect to session [session connectpeer:peerid withnearbyconnectiondata:data timeout:timeout]; Cancel connect [session cancelconnectpeer:peerid];
123 Custom Discovery APIs Connect to session [session connectpeer:peerid withnearbyconnectiondata:data timeout:timeout]; Cancel connect [session cancelconnectpeer:peerid];
124 Custom Discovery APIs Connect to session [session connectpeer:peerid withnearbyconnectiondata:data timeout:timeout]; Cancel connect [session cancelconnectpeer:peerid];
125 Summary Fully customized discovery Two-step process Exchange peerids Exchange nearby connection data
126 Authentication
127
128
129 Encryption Authentication
130 Digital Identity (SecIdentityRef) Private Key (SecKeyRef) Certificate (SecCertificateRef)
131 Distributing Identities Web server attachment Mobile Device Management server More info Tech QA
132 Importing Digital Identity // Get password for importing an identity. const void *keys[] = {ksecimportexportpassphrase}; const void *values[] = {CFSTR( password )}; CFDictionaryRef optionsdictionary = CFDictionaryCreate(NULL, keys, values, 1, NULL, NULL); // Get identity data from PKCS#12 file. NSData *identitydata = [NSData datawithcontentsofurl:identitydataurl]; // Import digital identity. CFArray items = NULL; SecPKCS12Import(CFDataRef)identityData, optionsdictionary, &items);
133 Importing Digital Identity // Get password for importing an identity. const void *keys[] = {ksecimportexportpassphrase}; const void *values[] = {CFSTR( password )}; CFDictionaryRef optionsdictionary = CFDictionaryCreate(NULL, keys, values, 1, NULL, NULL); // Get identity data from PKCS#12 file. NSData *identitydata = [NSData datawithcontentsofurl:identitydataurl]; // Import digital identity. CFArray items = NULL; SecPKCS12Import(CFDataRef)identityData, optionsdictionary, &items);
134 Importing Digital Identity // Get password for importing an identity. const void *keys[] = {ksecimportexportpassphrase}; const void *values[] = {CFSTR( password )}; CFDictionaryRef optionsdictionary = CFDictionaryCreate(NULL, keys, values, 1, NULL, NULL); // Get identity data from PKCS#12 file. NSData *identitydata = [NSData datawithcontentsofurl:identitydataurl]; // Import digital identity. CFArray items = NULL; SecPKCS12Import(CFDataRef)identityData, optionsdictionary, &items);
135 Importing Digital Identity // Get password for importing an identity. const void *keys[] = {ksecimportexportpassphrase}; const void *values[] = {CFSTR( password )}; CFDictionaryRef optionsdictionary = CFDictionaryCreate(NULL, keys, values, 1, NULL, NULL); // Get identity data from PKCS#12 file. NSData *identitydata = [NSData datawithcontentsofurl:identitydataurl]; // Import digital identity. CFArray items = NULL; SecPKCS12Import(CFDataRef)identityData, optionsdictionary, &items);
136 Digital Identity (SecIdentityRef) Private Key (SecKeyRef) Certificate (SecCertificateRef)
137
138
139 Evaluating Chain of Trust
140 Evaluating Chain of Trust
141 Evaluating Chain of Trust
142 Evaluating Chain of Trust
143 Evaluating Chain of Trust
144 Evaluating Chain of Trust
145 Certificate Validation Create policy object Create trust object (using certificates and policy) Evaluate trust object
146 Certificate Validation NSArray *policy = [NSArray arraywithobject: ( bridge id)secpolicycreatebasicx509()]; SecTrustRef *trust; SecTrustCreateWithCertificates(( bridge CFArrayRef)certificate, ( bridge CFArrayRef)policy, &trust); SecTrustSetAnchorCertificates(trust, ( bridge CFArrayRef)[NSArray arraywithobject:( bridge id)anchor]); SecTrustResultType trustresult; SecTrustEvaluate(trust, &trustresult); allowconnection = (trustresult == ksectrustresultunspecified);
147 Certificate Validation NSArray *policy = [NSArray arraywithobject: ( bridge id)secpolicycreatebasicx509()]; SecTrustRef *trust; SecTrustCreateWithCertificates(( bridge CFArrayRef)certificate, ( bridge CFArrayRef)policy, &trust); SecTrustSetAnchorCertificates(trust, ( bridge CFArrayRef)[NSArray arraywithobject:( bridge id)anchor]); SecTrustResultType trustresult; SecTrustEvaluate(trust, &trustresult); allowconnection = (trustresult == ksectrustresultunspecified);
148 Certificate Validation NSArray *policy = [NSArray arraywithobject: ( bridge id)secpolicycreatebasicx509()]; SecTrustRef *trust; SecTrustCreateWithCertificates(( bridge CFArrayRef)certificate, ( bridge CFArrayRef)policy, &trust); SecTrustSetAnchorCertificates(trust, ( bridge CFArrayRef)[NSArray arraywithobject:( bridge id)anchor]); SecTrustResultType trustresult; SecTrustEvaluate(trust, &trustresult); allowconnection = (trustresult == ksectrustresultunspecified);
149 Certificate Validation NSArray *policy = [NSArray arraywithobject: ( bridge id)secpolicycreatebasicx509()]; SecTrustRef *trust; SecTrustCreateWithCertificates(( bridge CFArrayRef)certificate, ( bridge CFArrayRef)policy, &trust); SecTrustSetAnchorCertificates(trust, ( bridge CFArrayRef)[NSArray arraywithobject:( bridge id)anchor]); SecTrustResultType trustresult; SecTrustEvaluate(trust, &trustresult); allowconnection = (trustresult == ksectrustresultunspecified);
150 Certificate Validation NSArray *policy = [NSArray arraywithobject: ( bridge id)secpolicycreatebasicx509()]; SecTrustRef *trust; SecTrustCreateWithCertificates(( bridge CFArrayRef)certificate, ( bridge CFArrayRef)policy, &trust); SecTrustSetAnchorCertificates(trust, ( bridge CFArrayRef)[NSArray arraywithobject:( bridge id)anchor]); SecTrustResultType trustresult; SecTrustEvaluate(trust, &trustresult); allowconnection = (trustresult == ksectrustresultunspecified);
151 Authentication // instantiate with security MCSession *session = [[MCSession alloc] initwithpeer:mypeerid securityidentity:identity encryptionpreference:preference]; SecIdentityRef SecCertificateRef SecCertificateRef SecCertificateRef Identity Certificate Chain
152 Authentication - (void) session:(mcsession *)session didreceivecertificate:(nsarray *)certificate frompeer:(mcpeerid *)peerid certificatehandler:(void(^)(bool accept))certificatehandler SecCertificateRef SecCertificateRef SecCertificateRef SecCertificateRef Identity Certificate Chain
153 Summary Distribution and importing of digital identities Chain of trust evaluation
154 More Information Paul Danbold Core OS Technologies Evangelist Documentation Multipeer Connectivity Framework Reference MultipeerConnectivityFramework Sample Code MultipeerGroupChat Apple Developer Forums
155 Related Sessions What s New in Foundation Networking Nob Hill Tuesday 3:15PM StoryBoards and Controllers on OS X Pacific Heights Tuesday 4:30PM
156 Labs Networking Lab Core OS Lab B Wednesday 9:00AM Multipeer Connectivity Lab Core OS Lab A Wednesday 10:15AM View Controllers and Cocoa Lab Frameworks Lab B Thursday 11:30 AM Multipeer Connectivity Lab 2 Core OS Lab B Friday 9:00AM
157
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 informationGame 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 informationAccessibility 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 informationStoryboards 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 informationNetworking 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 informationIntroducing the Photos Frameworks
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
More informationBuilding 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 informationUsing 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 informationAccessibility 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 informationWhat 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 informationCreating 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 informationCreating 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 informationMastering 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 informationWhat 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 informationios 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 informationSeamless 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 informationCOSC$4355/6355$ $Introduction$to$Ubiquitous$Computing$ Exercise$3$ September!17,!2015!
COSC4355/6355 IntroductiontoUbiquitousComputing Exercise3 September17,2015 Objective Inthisexercise,youwilllearnhowtowriteunittestsforyourapplicationandalsohowtouse NSUserDefaults.WewillalsoimplementObjectiveCCcategories*welearntlastweek.
More informationData 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 informationIntroducing 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 informationIntroducing 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 informationNew 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 informationBuilding a (Core) Foundation. Rob Napier
Building a (Core) Foundation Rob Napier A little background Mac OS X since 10.4 iphoneos since release Cisco Jabber, The Daily, RNCryptor Focus on low-level Today: Mac developer for... KACE NAPIER KUMAR
More informationWhat 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 informationKevin 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 informationImplementing 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 informationAsyncNetwork Cocoa & ios Networking Evolved
AsyncNetwork Cocoa & ios Networking Evolved Open Source (MIT License) github.com/jdiehl/async-network jonathan.diehl@rwth-aachen.de Client/Server One Server Many Clients Listen to incoming connections
More informationDeploying AirPrint in Enterprise
System Frameworks #WWDC16 Deploying AirPrint in Enterprise Session 725 Todd Ritland AirPrint Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationLocalizing 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 informationExtending 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 informationCreating 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 informationiphone Application Programming Networking
iphone Application Programming Networking RWTH Aachen University WS 2015/16 http://hci.rwth-aachen.de/iphone Networking on ios There are many ways to network Think about what you need to do first Then
More informationApple Watch Design Tips and Tricks
Design #WWDC15 Apple Watch Design Tips and Tricks Session 805 Mike Stern User Experience Evangelist Rachel Roth User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public
More informationIntroducing 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 informationWhat 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 informationIt Just (Net)works. The Truth About ios' Multipeer Connectivity Framework. Alban
It Just (Net)works The Truth About ios' Multipeer Connectivity Framework Alban Diquet! @nabla_c0d3 About me ios Security Researcher at Data Theorem Before: Principal Security Consultant at isec Partners
More informationMastering 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 informationAddress 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 informationCS193E Lecture 7. Document-based Applications NSTableView Key-Value Coding
CS193E Lecture 7 Document-based Applications NSTableView Key-Value Coding Agenda Questions? Review: delegates, MVC Document-based apps Table views Key Value Coding Model, View, Controller Controller Model
More informationIntroducing 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 informationAdvanced 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 informationMonetize 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 informationContent 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 informationPower, 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 informationBuilding 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 informationAdapting 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 informationMysteries 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 informationCreating 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 informationWhat s New in Cocoa for macos
Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public
More informationEditing 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 informationDesigning 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 informationCreating 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 informationEnhancing 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 informationIntroducing 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 informationModern User Interaction on ios
App Frameworks #WWDC17 Modern User Interaction on ios Mastering the UIKit UIGesture System Session 219 Dominik Wagner, UIKit Engineer Michael Turner, UIKit Engineer Glen Low, UIKit Engineer 2017 Apple
More informationWhat s New in the LLVM Compiler. Chris Lattner LLVM Chief Architect
What s New in the LLVM Compiler Chris Lattner LLVM Chief Architect 2 Apple Compiler Evolution Renovating the Apple compiler landscape Phasing out GCC-based tools Driving innovation in LLVM-based technologies
More informationWhat s New in Foundation for Swift Session 207
App Frameworks #WWDC16 What s New in Foundation for Swift Session 207 Tony Parker Foundation, Apple Michael LeHew Foundation, Apple 2016 Apple Inc. All rights reserved. Redistribution or public display
More informationWhat's New in UIKit Dynamics and Visual Effects Session 229
App Frameworks #WWDC15 What's New in UIKit Dynamics and Visual Effects Session 229 Michael Turner UIKit Engineer David Duncan UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public
More informationIntroducing Password AutoFill for Apps
Session App Frameworks #WWDC17 Introducing Password AutoFill for Apps Reducing friction for your users 206 Ricky Mondello, ios Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display
More informationUsing Apple AirPrint with Xerox Devices Built on Xerox ConnectKey Technology User Guide. February 2016
Using Apple AirPrint with Xerox Devices Built on Xerox ConnectKey Technology User Guide February 2016 2016 Xerox Corporation. All rights reserved. Xerox, Xerox and Design and ConnectKey are trademarks
More informationWhat'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 informationios Application Development Course Details
ios Application Development Course Details By Besant Technologies Course Name Category Venue ios Application Development Mobile Application Development Besant Technologies No.24, Nagendra Nagar, Velachery
More informationMastering 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 informationMobile 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 informationWatchKit 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 informationAdvanced 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 informationAdopting 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 informationBCS Autumn School. Distinguish your application with Bonjour. Nan Xu. 20 November 2013
BCS Autumn School Distinguish your application with Bonjour Nan Xu 20 November 2013 About Speaker Director of Operations at Red7Mobile Ltd PRINCE2 project manager and Senior ios developer Have managed,
More informationThread 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 informationMedia 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 informationCS193p Spring 2010 Wednesday, March 31, 2010
CS193p Spring 2010 Logistics Lectures Building 260 (History Corner) Room 034 Monday & Wednesday 4:15pm - 5:30pm Office Hours TBD Homework 7 Weekly Assignments Assigned on Wednesdays (often will be multiweek
More informationGetting 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 informationBuilding Applications with ArcGIS Runtime SDK for ios - Part I. Divesh Goyal Mark Dostal
Building Applications with ArcGIS Runtime SDK for ios - Part I Divesh Goyal Mark Dostal Agenda The ArcGIS System Using the Runtime SDK for ios - Display Maps - Perform Analysis - Visualize Results Q&A
More informationJune Using Apple AirPrint with Xerox ConnectKey Devices User Guide
June 2013 Using Apple AirPrint with Xerox ConnectKey Devices User Guide 2013 Xerox Corporation. All rights reserved. Xerox, Xerox and Design and ConnectKey are trademarks of the Xerox Corporation in the
More informationDesigning 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 informationFiles & Archiving. Lecture 8
Files & Archiving Lecture 8 Persistent Data NSUserDefaults Dead simple to use Just one big file Only supports property list types What if you want more features? File Tasks Finding the file path User selected
More informationUsing the Camera with AV Foundation Overview and best practices. Brad Ford iphone Engineering
Using the Camera with AV Foundation Overview and best practices Brad Ford iphone Engineering 2 What You ll Learn Why and when you should use AV Foundation capture The AV Foundation capture programming
More informationLeveraging Touch Input on ios
App Frameworks #WWDC16 Leveraging Touch Input on ios And getting the most out of Apple Pencil Session 220 Dominik Wagner UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display
More informationContents. 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 informationStaying Secure and Unprepared: Understanding and Mitigating the Security Risks of Apple ZeroConf
Staying Secure and Unprepared: Understanding and Mitigating the Security Risks of Apple ZeroConf (Xiaolong Bai, Luyi Xing) (co-first authors), Nan Zhang, XiaoFeng Wang, Xiaojing Liao, Tongxin Li, Shi-Min
More informationHKUST. CSIT 6910A Report. iband - Musical Instrument App on Mobile Devices. Student: QIAN Li. Supervisor: Prof. David Rossiter
HKUST CSIT 6910A Report Student: Supervisor: Prof. David Rossiter Table of Contents I. Introduction 1 1.1 Overview 1 1.2 Objective 1 II. Preparation 2 2.1 ios SDK & Xcode IDE 2 2.2 Wireless LAN Network
More informationArcGIS Enterprise Security: An Introduction. Gregory Ponto & Jeff Smith
ArcGIS Enterprise Security: An Introduction Gregory Ponto & Jeff Smith Agenda ArcGIS Enterprise Security Model Portal for ArcGIS Authentication Authorization Building the Enterprise Encryption Collaboration
More informationData IAP 2010 iphonedev.csail.mit.edu edward benson / Thursday, January 14, 2010
Data IAP 2010 iphonedev.csail.mit.edu edward benson / eob@csail.mit.edu Today Property Lists User Defaults Settings Panels CoreData Property Lists Today Add persistence. plist 1. Using Property Lists in
More informationUsing 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 informationWhat 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 informationTouch Bar Fundamentals
Session App Frameworks #WWDC17 Touch Bar Fundamentals 211 Chris Dreessen John Tegtmeyer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from
More informationiphone Application Programming Networking
iphone Application Programming Networking Media Computing Group RWTH Aachen University WS 2013/2014 http://hci.rwth-aachen.de/iphone Networking Connect Two Peers Standard UI What Is the Peer Picker? Game
More informationStanford CS193p. Developing Applications for ios. Spring Stanford CS193p. Spring 2012
Developing Applications for ios Today Shutterbug Map Demo Final part: customizing the callout. Final Projects Requirements Some ideas from the Stanford community Persistence (time-permitting) More ways
More informationProfiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer
Developer Tools #WWDC15 Profiling in Depth Do you know where your code is? Session 412 Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer 2015 Apple Inc. All rights reserved.
More informationMastering Drag and Drop
Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationApp 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 informationWhat s New in Testing
#WWDC18 What s New in Testing Session 403 Honza Dvorsky, Xcode Engineer Ethan Vaughan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written
More informationAdvanced Scrollviews and Touch Handling Techniques
Frameworks #WWDC14 Advanced Scrollviews and Touch Handling Techniques Session 235 Josh Shaffer ios Apps and Frameworks Engineer Eliza Block ios Apps and Frameworks Engineer 2014 Apple Inc. All rights reserved.
More informationConfiguring the Cisco APIC-EM Settings
Logging into the Cisco APIC-EM, page 1 Quick Tour of the APIC-EM Graphical User Interface (GUI), page 2 Configuring the Prime Infrastructure Settings, page 3 Discovery Credentials, page 4 Security, page
More informationIntroduction to ArcGIS API for ios. Divesh Goyal Eric Ito
Introduction to ArcGIS API for ios Divesh Goyal Eric Ito Agenda Introduction Getting Started Objective-C basics Common design patterns Key Concepts Q&A Remember to turn in your surveys. ArcGIS - A Complete
More informationImproving 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 informationIntroducing Swift Playgrounds
Developer Tools #WWDC16 Introducing Swift Playgrounds Exploring with Swift on ipad Session 408 Matt Patenaude Playgrounds Engineer Maxwell Swadling Playgrounds Engineer Jonathan Penn Playgrounds Engineer
More informationAn ios Static Library for Service Discovery and Dynamic Procedure Calls
An ios Static Library for Service Discovery and Dynamic Procedure Calls Arnav Anshul Department of Engineering. Arizona State University Polytechnic Campus. arnavanshul@gmail.com Abstract - Remote procedure
More informationQuick 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 informationEnabling 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 informationBuilding 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