Push vs Modal Presentation in UIKit
WHAT IT TESTS: understanding of UIKit navigation models. OUTLINE: push adds to a nav stack with back, modal presents a self-contained interrupting flow. RED FLAG: treating them as interchangeable or ignoring the stack relationship.
WHAT IT TESTS: command of UIKit's two presentation paradigms. ANSWER OUTLINE: pushing requires a UINavigationController and adds a controller to its stack, giving a hierarchical back button and a sense of drilling deeper into related content. Presenting modally covers the screen with an independent controller that interrupts the flow, typically for a self-contained task the user completes or cancels. RED FLAG: saying they are interchangeable, or pushing onto a controller with no navigation controller and expecting a back button.
Read the original → interview
- #ios
- #swift
- #uikit
- #navigation
- #view-controller
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.