Slide 1

Slide 1 text

Cocoa Dynamic Frameworks (on iOS)

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Cocoa Framework

Slide 4

Slide 4 text

What A collection of resources Compiled code + public headers

Slide 5

Slide 5 text

Why · Extensions · Sharing code between applications · Public distribution

Slide 6

Slide 6 text

Why

Slide 7

Slide 7 text

DRY Don't Repeat Yourself

Slide 8

Slide 8 text

DRY If the code appears more than once, it belongs in a framework

Slide 9

Slide 9 text

Dynamic Frameworks

Slide 10

Slide 10 text

Dynamic Frameworks A dynamic framework, when updated, does not require applications to relink to them OS X already supports Dynamically Linked frameworks

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

How

Slide 13

Slide 13 text

And...

Slide 14

Slide 14 text

CocoaPods

Slide 15

Slide 15 text

CocoaPods

Slide 16

Slide 16 text

Testable

Slide 17

Slide 17 text

Extensions

Slide 18

Slide 18 text

NS_ EXTENSION_ UNAVAILABLE_ IOS EventKitUI UIActionSheet UIAlertView +[UIapplication sharedApplication] -[UIApplication beginIgnoringInteractionEvents] -[UIApplication endIgnoringInteractionEvents] -[UIApplication openURL:]

Slide 19

Slide 19 text

Visibility

Slide 20

Slide 20 text

Visibility

Slide 21

Slide 21 text

Visibility · Project · Public · Private

Slide 22

Slide 22 text

Visibility

Slide 23

Slide 23 text

Reférences : WWDC 2014 Session 416

Slide 24

Slide 24 text

Thanks ! @viteinfinite