UIKit interview questions

View controller lifecycle, Auto Layout, lists and collections, hit-testing and navigation in UIKit.

7 quick facts

– interview-ready · 13 questions in this topic

– of 13 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. The UIViewController lifecycleOrder the steps
  2. How Auto Layout worksPick the fix
  3. Content hugging and compression resistancePredict
  4. frame vs boundsPredict
  5. Table and collection view cell reuseSpot the bug
  6. UICollectionView vs UITableView and diffable data sourcesPick the fix
  7. UICollectionViewCompositionalLayoutPick the fix
  8. layoutSubviewsPick the fix
  1. Hit-testing and the responder chainPredict
  2. Passing data between view controllersPick the fix
  3. Modal presentation stylesPredict
  4. viewDidLoad vs initPick the fix
  5. intrinsicContentSizeFill the blank

Practise this topic

Flashcards · 20

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 13 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 2 sets

Timed, out loud, then tick what you covered. Needs JavaScript.

Fix this PR · 1 review

Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.