Chapter 3

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

b) Info.plist.

  1. How many different size classes exist today?

a) Two.

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

c) UITraitCollection.

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

b) Using UIStackView.

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

a) By calling view.layoutSubviews() in an animation.

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

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

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

b) Two.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset