Created
June 13, 2017 22:58
-
-
Save fernandojinzenji/e0df773ec5882241329fd59de6857911 to your computer and use it in GitHub Desktop.
Week 3, Tuesday - Questions and Answers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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