1 of 5

ECS 189E: Android and iOS fundamentals

Navigation + communication between viewControllers

Sam King, October 17th 2018

2 of 5

Administrative

Last time: TableView

This time: Navigation

Next time (Monday): Closures

3 of 5

Administrative

Video from last time and today will be up later today

Quiz topic: Protocols, delegates, high order functions, optionals

Will try to post a practice quiz (no promises)

4 of 5

Navigation concepts: child VC to do a task

Main VC

Child VC

Create

Update protocol

Delegate

Delegate applies the update or not, is responsible for dismissing the child

5 of 5

Navigation controller: a UI flow

Back stack with previous ViewControllers

Navigation controller to coordinate (managed by the framework

Current VC, can push itself and create a new VC, or pop to go back