Slide 1

Slide 1 text

Bending UIKit to your will

Slide 2

Slide 2 text

@steipete

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Private API

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Development

Slide 8

Slide 8 text

po [[UIWindow keyWindow] recursiveDescription]

Slide 9

Slide 9 text

- (UIViewController *)_viewDelegate;

Slide 10

Slide 10 text

[[UIApplication sharedApplication] performSelector:NSSelectorFromString(@"_performMemoryWarning")];

Slide 11

Slide 11 text

extern void CGPathPrint(CGPathRef path, FILE* file);

Slide 12

Slide 12 text

CGFloat PSPDFSimulatorAnimationDragCoefficient(void) { void *UIKit = dlopen([[[NSBundle bundleForClass:[UIApplication class]] executablePath] fileSystemRepresentation], RTLD_LAZY); CGFloat (*UIAnimationDragCoefficient)(void) = (CGFloat (*)(void))dlsym(UIKit, "UIAnimationDragCoefficient"); return UIAnimationDragCoefficient? UIAnimationDragCoefficient() : 1.f; }

Slide 13

Slide 13 text

[[NSNotificationCenter defaultCenter] addObserverForName:nil object:nil queue:nil usingBlock:^(NSNotification *note) { NSLog(@"Catch-All: %@", note); }];

Slide 14

Slide 14 text

UIWindowFirstResponderDidChangeNotification

Slide 15

Slide 15 text

Testing

Slide 16

Slide 16 text

Nocilla KIF PonyDebugger OHHTTPStubs

Slide 17

Slide 17 text

Fixing Apple’s bugs

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

[_UIPageCurl _pageCurlAnimationDidStop:withState:]: message sent to deallocated instance 0x14a03fe0

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

NSClassFromString([NSString stringWithFormat:@"_%@urlState", @"UIPageC"]);

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Fun

Slide 25

Slide 25 text

Fun

Slide 26

Slide 26 text

UIRemoteViewController

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

- (void)attentionClassDumpUser:(id)arg1 yesItsUsAgain:(id)arg2 althoughSwizzlingAndOverridingPrivateMethodsIsFun:(id)arg3 itWasntMuchFunWhenYourAppStoppedWorking:(id)arg4 pleaseRefrainFromDoingSoInTheFutureOkayThanksBye:(id)arg5;

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

@interface CASpringAnimation : CABasicAnimation @property float damping; @property float mass; @property float stiffness; @property float velocity; @end

Slide 32

Slide 32 text

Some subtitle or description goes here Here the title

Slide 33

Slide 33 text

Technical debt

Slide 34

Slide 34 text

- (void)addChildViewController:(id)controller;

Slide 35

Slide 35 text

Improve UI

Slide 36

Slide 36 text

Some subtitle or description goes here Here the title

Slide 37

Slide 37 text

Demo time

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Hopper

Slide 40

Slide 40 text

Thanks! (And don’t tell Apple) @steipete - say Hi!