📐 Auto Layout: iOS interview questions
- What is a constraint (NSLayoutConstraint)? Junior PRO
- What is intrinsic content size? Junior PRO
- Content hugging vs compression resistance? Middle PRO
- How do constraint priorities work? Middle PRO
- Ambiguous vs unsatisfiable layout — what's the difference? Middle PRO
- Layout Anchors, NSLayoutConstraint and Visual Format Language? Junior PRO
- What are safe area and layout margins? Junior PRO
- How does Auto Layout work with UIScrollView? Middle PRO
- Describe the layout cycle: setNeedsLayout, layoutSubviews, updateConstraints. Senior PRO
- UIStackView: how do distribution and alignment work, and where are the gotchas? Junior PRO
- How do you debug Auto Layout: conflict logs, View Debugger and identifier? Middle PRO
- Self-sizing cells: how do UITableView and UICollectionView compute height? Middle PRO
- How do you change and animate constraints: isActive, constant, layoutIfNeeded? Middle PRO
Practice this before your interview
DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.
Get DevPrep on the App Store