Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
iOS 8 Extensions
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Thomas Eichmann
August 19, 2014
Programming
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOS 8 Extensions
Quick intro into iOS 8 extensions.
Thomas Eichmann
August 19, 2014
Transcript
31 slides
iOS$8$extensions
about&me mobile'engineer'at'local.ch @teichmann*on*twi-er
what%is%an extension?
a"way"for"you"to"extend"the"system" and"other"applica4ons
The$parts • extension)container • extension)points • extension)host • extensions
extension(container • that's'your%app • can'contain'mul/ple'extensions'(even'of'the'same'type)
extension(container • You%can’t%submit%an%app%extension%to%the%App%Store%unless%it’s% inside%a%containing%app,%and%you%can’t%transfer%an%extension%from% one%app%to%another. • Your%containing%app%must%provide%func3onality%to%iOS%users;%it% can’t%just%contain%extensions.
extension(points • areas%exposed%by%the%system%where%your%extensions%can%bind%to • e.g.%a%Today%Widget%binds%to%the%extension%point%of%the% No6fica6onCenter%framework • you%will%not%be%able%to%use%an%extension%for%any%other%extension% point%than%it%has%been%build%for
extension(points(available(in(iOS(8 • share:"share"content"e.g."with"social"websites • ac(on:"perform"simple"tasks"with"content • today:"widgets"in"the"today"view"of"no9fica9on"center • photo/edi(ng:"edit"a"photo"or"video"within"the"Photos"app •
storage/provider:"document"storage"accessible"by"other"apps" • custom/keyboards:"for"all"apps"on"the"device
extension(host • the%app%that%indirectly%launches%an%extension%via%an%Apple% framework;%the%host%app%never%directly%invokes%an%extension% itself%(e.g.%share,%ac>ons%with%UIAc%vityViewController) • extension%host%can%also%be%a%system%app%itself,%e.g.%the%Today% view%in%the%no>fica>on%center
extensions
an#extension#is#essen*ally#a#UIViewController • presented)full-screen)or)contained)depending)on)the)extension) point)/)your)se7ngs • receives)callbacks)like)viewWillAppear,)viewDidAppear)etc. • there)are)also)UI#less'extensions)(e.g.)ac>ons)can)be)UI-less)
extensions(are(also • separate(built(binaries(/(bundles • own(executable • own(debugging(symbols • own(en7tlements
None
extensions • run%completely%separately%from%the%container%app%in%their%own% sandbox • no#data#sharing#between#container#app#and#extension#by# default%(app%groups%to%the%rescue) • no%direct%communica:on%with%container%app%except%app%URLs
extensions • start&every&*me&in&a&new&process • no&mul*tasking&/&shared&process&(mul*ple&processes&launched& by&different&host&apps) • no&long&running&background&modes&(meant&for&short&lived& tasks) •
use&background&transfers&from&NSURLSession
None
data$exchange NSExtensionContext @property(readonly, copy, nonatomic) NSArray *inputItems NSExtensionItem @property(copy, nonatomic)
NSArray *attachments NSItemProvider @property(copy, readonly, nonatomic) NSArray *registeredTypeIdentifiers - (void)loadItemForTypeIdentifier:(NSString *)typeIdentifier options:(NSDictionary *)options completionHandler:(NSItemProviderCompletionHandler)completionHandler typedef void (^NSItemProviderCompletionHandler)(id <NSSecureCoding> item, NSError *error);
extension(ac+va+on(rules
None
complex(ac*va*on(rules((predicate) {extensionItems = ({ attachments = ({ registeredTypeIdentifiers = (
"com.adobe.pdf", "public.file-url"); }); })} SUBQUERY(extensionItems, $extensionItem, SUBQUERY($extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf").@count == 1).@count == 1
NS_EXTENSION_UNAVAILABLE_IOS
get$your$64+bit$builds$ready!
"An$app$extension$target$must$ include$the$arm64$architecture$in$its$ Architectures$build$se8ngs$or$it$will$ be$rejected$by$the$App$Store."
debugging you$cannot$debug$your$app$and$extension$at$the$same$4me • choose'your'extension's'scheme'in'Xcode • choose'the'host'app'that'you'will'invoke'your'extension'with • wait...'(be'pa<ent)
how$do$I$start?
file$>$new$>$target
None
ExtKitchenSink h"ps:/ /github.com/the/ios82extensions2kitchen2sink (h"p:/ /bit.ly/1pBwn5w)
more%informa*on • WWDC%2015:%sessions%205,%217 • App%Extension%Programming%Guide
thanks':))
Other Decks in Programming
See All in Programming
Getting Started with Vibe Coding
miccheng
0
250
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.1k
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
270
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
300
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
470
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
Crash Auto Pipelines
veronikapj
1
440
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
360
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.3k
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
270
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
240
Debian JP Projectのサーバー構成
uwabami
1
170
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.6k
Producing Creativity
orderedlist
PRO
348
41k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Crafting Experiences
bethany
1
450
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
540
How to Ace a Technical Interview
jacobian
280
24k
Visualization
eitanlees
153
17k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k