Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Storyboards vs. Interface Builder vs. Code
Slide 2
Slide 2 text
Different Methods
Slide 3
Slide 3 text
Storyboards Has more than one view and manages transitions
Slide 4
Slide 4 text
Supported by Apple
Slide 5
Slide 5 text
Interface Builder
Slide 6
Slide 6 text
Interface Builder Circa 1993
Slide 7
Slide 7 text
Code
Slide 8
Slide 8 text
Storyboards
Slide 9
Slide 9 text
One application, one storyboard
Slide 10
Slide 10 text
One application, one storyboard
Slide 11
Slide 11 text
Storyboards
Slide 12
Slide 12 text
Storyboards
Slide 13
Slide 13 text
BREAK INTO PIECES » Authentication / Registration
Slide 14
Slide 14 text
BREAK INTO PIECES » Authentication / Registration » Multi-step Order Forms
Slide 15
Slide 15 text
BREAK INTO PIECES » Authentication / Registration » Multi-step Order Forms » Wizards, Tutorials, etc.
Slide 16
Slide 16 text
BREAK INTO PIECES » Authentication / Registration » Multi-step Order Forms » Wizards, Tutorials, etc. » Master-Detail
Slide 17
Slide 17 text
BREAK INTO PIECES: WHY?
Slide 18
Slide 18 text
BREAK INTO PIECES: WHY?
Slide 19
Slide 19 text
CONFLICT
Slide 20
Slide 20 text
WHEN TO USE ADVANTAGES » Easier Transitions
Slide 21
Slide 21 text
WHEN TO USE ADVANTAGES » Easier Transitions » No alloc] init]
Slide 22
Slide 22 text
WHEN TO USE ADVANTAGES » Easier Transitions » No alloc] init] » Visual Tool
Slide 23
Slide 23 text
WHEN TO USE ADVANTAGES » Easier Transitions » No alloc] init] » Visual Tool » Static Table Views
Slide 24
Slide 24 text
WHEN TO USE ADVANTAGES » Easier Transitions » No alloc] init] » Visual Tool » Static Table Views » More than one Cell Templates
Slide 25
Slide 25 text
WHEN TO USE ADVANTAGES » Easier Transitions » No alloc] init] » Visual Tool » Static Table Views » More than one Cell Templates » Less file count
Slide 26
Slide 26 text
WHEN NOT TO USE » Complex custom UI » UI with too many clear backgrounds » Already implemented with code or XIBs
Slide 27
Slide 27 text
Storyboard Pros +
Slide 28
Slide 28 text
Storyboard Pros + PERFORMANCE » Only the initial view is allocated
Slide 29
Slide 29 text
Storyboard Pros + PROTOTYPING » Can be used to quickly create prototypes
Slide 30
Slide 30 text
Storyboard Pros + VISUAL » For those who are better with visuals
Slide 31
Slide 31 text
Storyboard Pros + AUTO-LAYOUT » We'll come back to this
Slide 32
Slide 32 text
I should use storyboards then.
Slide 33
Slide 33 text
Storyboard Cons - REUSABILITY
Slide 34
Slide 34 text
Storyboard Cons - DATA FLOW
Slide 35
Slide 35 text
Storyboard Cons - DATA FLOW » prepareForSegue:
Slide 36
Slide 36 text
Storyboard Cons - CONFLICT
Slide 37
Slide 37 text
Interface Builder
Slide 38
Slide 38 text
Interface Builder Old.
Slide 39
Slide 39 text
Interface Builder Old. But NSString is old too.
Slide 40
Slide 40 text
Interface Builder Multiple Files for Single views or Single Files for Multiple related views
Slide 41
Slide 41 text
Interface Builder Every view has its own XIB file.
Slide 42
Slide 42 text
Interface Builder Every view has its own XIB file. “After all, that's what Object-Oriented programming stands for.” -- Some programmer dude
Slide 43
Slide 43 text
WHEN TO USE » Modal Views
Slide 44
Slide 44 text
WHEN TO USE » Modal Views » Login/Register screens
Slide 45
Slide 45 text
WHEN TO USE » Modal Views » Login/Register screens » Reusable Views (templates, table cells)
Slide 46
Slide 46 text
WHEN TO USE » Modal Views » Login/Register screens » Reusable Views (templates, table cells) » Everywhere basically
Slide 47
Slide 47 text
Interface Builder Pros + Reusability » Prepare once, use everywhere
Slide 48
Slide 48 text
Interface Builder Pros + Visual Tool » See what you are making
Slide 49
Slide 49 text
Interface Builder Pros + Auto-Layout
Slide 50
Slide 50 text
Interface Builder Cons - Localization » It's not easy for the unexperienced
Slide 51
Slide 51 text
Code
Slide 52
Slide 52 text
Code » When IB and Storyboards aren't enough
Slide 53
Slide 53 text
Code » Understanding what's under the hood.
Slide 54
Slide 54 text
Code » Use coding only for a project at least once.
Slide 55
Slide 55 text
Code Pros + Performance
Slide 56
Slide 56 text
Code Pros + Reusability » Good for small changes on similar views » Open Source
Slide 57
Slide 57 text
Code Cons - Donkey Corpse amount of Code
Slide 58
Slide 58 text
Code Cons - Seeing Results Ain't Easy » Iterate/Run/Debug/Iterate Cycle
Slide 59
Slide 59 text
Code Cons - Not Imminent » Changes to the layout can't be applied that fast.
Slide 60
Slide 60 text
Code Cons - Anti-Prototyping » Say farewell to your loved ones if you are trying this.
Slide 61
Slide 61 text
Code Cons - Auto-Layout [NSLayoutConstraint constraintWithItem:self.button1 attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.button2 attribute:NSLayoutAttributeLeft multiplier:1.0 constant:-12.0];
Slide 62
Slide 62 text
The way I work
Slide 63
Slide 63 text
THANKS @seyfoyun - @wearethreadco