Skip to content

Commit c514216

Browse files
committed
Typos fix
1 parent e6ca8cb commit c514216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ A common occurence in MVC is where you have a massive-view-controller (some joke
128128
#### What considerations do you need when writing a UITableViewController which shows images downloaded from a remote server?
129129

130130
- Only download the image when the cell is scrolled into view (when cellForRowAtIndexPath is called)
131-
- Download the image asynchrnously on a backgorund thread so as not to block the UI so the user can keep scrolling
131+
- Download the image asynchronously on a background thread so as not to block the UI so the user can keep scrolling
132132
- 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))
133133

134134
#### What is a protocol? How do you define your own protocol?
@@ -387,7 +387,7 @@ Unit/UI testing are the basic of test-driven development. This development appro
387387

388388
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.
389389

390-
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.
390+
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.
391391

392392
#### What is the difference between frame and bound of a UIView?
393393

0 commit comments

Comments
 (0)