Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fernandojinzenji/e0df773ec5882241329fd59de6857911 to your computer and use it in GitHub Desktop.
Save fernandojinzenji/e0df773ec5882241329fd59de6857911 to your computer and use it in GitHub Desktop.
Week 3, Tuesday - Questions and Answers
Question 1: Mail, Instagram, YouTube. They all use a table view to display information. Mail uses a table view to display
a list of all emails. Youtube shows a list of your subscribed videos or suggestions. Instagram provides a tabular view
to display all your timeline.
Question 2:
Static table views are used to design user interfaces who needs to display a set of information in a tabular view.
Question 3:
A) UITableView has the following hierarchy:
NSObject
UIResponder
UIView
UIScrollView
UITableView
It conforms with protocols: NSCoding, UIDataSourceTranslating, UISpringLoadedInteractionSupporting
B) UITableView and UICollectionView are siblings. Both are subclasses of UIScrollView.
Question 4:
Use a UITableView and add a UICollectionView to your reusable tableView cell. UICollectionView works similar
to UITableView in that the "items" (like cells) are reusable and instantiated only when they will appear on screen.
Question 5:
If this line is commented, the table view will maintain the selected row.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment