Académique Documents
Professionnel Documents
Culture Documents
print(MySwiftString)
5. The second line uses the stringForKey method of NSUserDefaults, which returns an
optional, to account for the key not being found, or for the corresponding value not being
convertible to a string
print(characters)
7. 5
8. Int and UInt as both are different and can’t be typecast without converting anyone of them
9. Cocoa and Cocoa Touch are frameworks that run on OS X and iOS respectively. They consist of
libraries, APIs, and runtimes
10. The reuseIdentifier tells UITableView which cells may be reused within the table, effectively
grouping together rows in a UITableView that differ only in content but have similar layouts
11. Not Running, Inactive, Active, Suspended, Background
12. Managed object context exists for three reasons: life-cycle management, notifications, and
concurrency. It allows the developer to fetch an object from a persistent store and make the necessary
modifications before deciding whether to discard or commit these changes back to the persistent
store. The managed object context tracks these changes and allows the developer to undo and redo
change
13. b
15. Delegate: A delegate type object responds to actions that another object takes.
DataSource: Whereas a data source type object gives data to another object
17. a
18. c
19. a
20. a
21. Double
24. 128
25. TARDIS