Speaker Deck
Speaker Deck Pro
Sign in
Sign up
for free
Thirteen Ways of Looking at a View Controller
Greg Heo
June 06, 2017
Technology
0
96
Thirteen Ways of Looking at a View Controller
View controllers: we know them, love them, despise them, and overload them.
Greg Heo
June 06, 2017
Tweet
Share
More Decks by Greg Heo
See All by Greg Heo
gregheo
0
65
gregheo
0
45
gregheo
0
150
gregheo
0
16
gregheo
0
28
gregheo
0
490
gregheo
0
62
gregheo
0
34
gregheo
3
160
Other Decks in Technology
See All in Technology
takem001
0
850
smzksts
0
160
clustervr
0
180
shimacos
2
260
vkbaba
0
100
satotakeshi
2
400
yosuke_matsuura
PRO
0
3.1k
kurotanshi
0
170
yuuturn
1
130
shotakashihara
1
1.3k
osonoi
0
160
yokatsuki
0
190
Featured
See All Featured
andyhume
62
3.3k
cherdarchuk
71
260k
zakiwarfel
88
3.3k
keavy
106
14k
bkeepers
52
4.1k
gr2m
83
11k
chrislema
231
16k
tammielis
237
23k
matthewcrist
73
7.5k
ddemaree
274
31k
jcasabona
7
520
shpigford
368
42k
Transcript
@gregheo AltConf 2017 I was of three minds, Like a
tree In which there are three blackbirds. Thirteen Ways of Looking at a Blackbird Wallace Stevens
@gregheo AltConf 2017 Thirteen Ways of Looking at a View
Controller approximately
@gregheo AltConf 2017 Hold the Model Controller Model View
@gregheo AltConf 2017 Coordinate Between Views Button Label tap action
set text View Controller ???
@gregheo AltConf 2017 View Appearance Callbacks • view did load
• view will / did appear • view will / did disappear
@gregheo AltConf 2017 Handle View Layout • loadView • view
setup in viewDidLoad • view will / did layout subviews • layout guides
@gregheo AltConf 2017 “We shape our buildings, and afterwards
our buildings shape us.”
@gregheo AltConf 2017 Miscellaneous • “is editing” state • state
restoration • search display controller • title
@gregheo AltConf 2017 Manage Style • presentation style • transitions
• thirteen ways to handle rotation
@gregheo AltConf 2017 Navigation • Navigation controllers, tab bar controllers,
split view controllers • View controller containment • Storyboard segues
@gregheo AltConf 2017 Among twenty snowy mountains, The only moving
thing Was the eye of the blackbird. swift
@gregheo AltConf 2017 " #
@gregheo AltConf 2017 so controlling such view much single responsibility
wow very SOLID
@gregheo AltConf 2017 Model View Presentation Logic Navigation Business Logic
Manage Views Massive View Controller View Controller
@gregheo AltConf 2017 View Controller Model View Presentation Logic Navigation?
Business Logic Manage Views MVVM View Model
@gregheo AltConf 2017 Routing Entity View Presentation Logic Navigation Business
Logic Models VIPER Presenter Interactor
@gregheo AltConf 2017 Router View Presentation Logic Navigation Business Logic
Model Riblets Presenter Interactor
@gregheo AltConf 2017 Streams View Model Reactive Observer Business Logic
View Model Business Logic
@gregheo AltConf 2017 When the blackbird flew out of sight,
It marked the edge Of one of many circles.
@gregheo AltConf 2017
@gregheo AltConf 2017
@gregheo AltConf 2017 Thirteen Ways of Looking at a View
Controller