Questions

  1. Where can you configure the supported Interface Orientations for an iPad in the Hello-Contacts project?

a) Project Settings
b) Info.plist
c) The storyboard

  1. How many different size classes exist today?

a) 2
b) 3
c) 4

  1. What object contains information about the current environment your app is running in?

a) UIEnvironmentTraits
b) UISizeClass
c) UITraitCollection

  1. What is the best way to lay out several objects on top of each other?

a) Auto Layout
b) Using UIStackView
c) UsingĀ UIScrollView

  1. How do you animate an update to layout constraints?

a) By calling view.layoutSubviews() in an animation
b) By updating the constraints inside an animation

  1. What is the correct way to create an instance of a view controller from a storyboard?

a) let myViewController = MyViewController()
b) let myViewController = storyboard?.instantiateViewController(withIdentifier:"MyViewController")
c) let myViewController = storyboard?.MyViewController()

  1. How many methods did you have to implement to support peek and pop?

a) 3
b) 2
c) 1