You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The interview questions as flash card sets according to topic.
71
73
72
74
# Interview Questions+Answers
73
75
76
+
74
77
## Database
75
78
76
79
#### What is NSFetchRequest?
@@ -129,7 +132,7 @@ A common occurence in MVC is where you have a massive-view-controller (some joke
129
132
#### What considerations do you need when writing a UITableViewController which shows images downloaded from a remote server?
130
133
131
134
- Only download the image when the cell is scrolled into view (when cellForRowAtIndexPath is called)
132
-
- Download the image asynchrnously on a backgorund thread so as not to block the UI so the user can keep scrolling
135
+
- Download the image asynchronously on a background thread so as not to block the UI so the user can keep scrolling
133
136
- When the image has downloaded for a cell, check if that cell is still in the view or whether it has been re-used by another piece of data. If the cell has been re-used, then the image should be discarded. Otherwise, it should be switched back to the main thread to change the image on the cell. ([source](https://www.codementor.io/mattgoldspink/ios-interview-tips-questions-answers-objective-c-du1088nfb))
134
137
135
138
#### What is a protocol? How do you define your own protocol?
@@ -388,7 +391,7 @@ Unit/UI testing are the basic of test-driven development. This development appro
388
391
389
392
viewDidLoad is only called when the view is loaded (after loadView is called). viewDidAppear, on the other hand, is called everytime the view appears on the device.
390
393
391
-
If the data is static for the most part, it can be loaded in viewDidLoad and achced. But if the data is dynamic and likely to change often, it is preferrable to use viewDidAppear. In both instances, data should be loaded asynchronously on a background thread to avoid blocking the UI.
394
+
If the data is static for the most part, it can be loaded in viewDidLoad and cached. But if the data is dynamic and likely to change often, it is preferrable to use viewDidAppear. In both instances, data should be loaded asynchronously on a background thread to avoid blocking the UI.
392
395
393
396
#### What is the difference between frame and bound of a UIView?
0 commit comments