DevPrep

All topics

📐 Auto Layout: iOS interview questions

  1. What is a constraint (NSLayoutConstraint)? Junior PRO
  2. What is intrinsic content size? Junior PRO
  3. Content hugging vs compression resistance? Middle PRO
  4. How do constraint priorities work? Middle PRO
  5. Ambiguous vs unsatisfiable layout — what's the difference? Middle PRO
  6. Layout Anchors, NSLayoutConstraint and Visual Format Language? Junior PRO
  7. What are safe area and layout margins? Junior PRO
  8. How does Auto Layout work with UIScrollView? Middle PRO
  9. Describe the layout cycle: setNeedsLayout, layoutSubviews, updateConstraints. Senior PRO
  10. UIStackView: how do distribution and alignment work, and where are the gotchas? Junior PRO
  11. How do you debug Auto Layout: conflict logs, View Debugger and identifier? Middle PRO
  12. Self-sizing cells: how do UITableView and UICollectionView compute height? Middle PRO
  13. 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