iOS Developers
Topics to Review
Unit testing
Instrument Tools (memory graphs)
UIKit fundamentals
Design Patterns
Architectural Patterns
Modularization of functionality
Scaling iOS applications
Web development fundamentals
Concurrency and multithreading (parallel programming)
Database fundamentals
Operating system fundamentals
Swift
The following list was taken from Codepath.
What is ARC and how does it work?
How is ARC different from Java's garbage collector?
What is a property?
When should a property be strong vs weak?
Why do strong reference cycles cause a memory leak in Swift (and Objective-C), but not in Java?
What does it mean to "capture self" in a closure and why can it lead to a memory leak?
What is the syntax for a property that can store a closure?
What does inferred typing mean in Swift?
What is an implicitly unwrapped optional?
When would you use ? vs ! to unwrap an optional?
When casting, when would you use as? vs as!
What is another syntax for unwrapping an optional?
What is optional chaining?
What is Any vs AnyObject vs NSObject?
What is the syntax for a property getter/setter?
What is a property observer?
What is a failable initializer?
What is a required vs convenience initializer?
What are the rules for initializers with respect to inheritance?
What is an extension?
What is guard & defer? When would you use them and why?
When would you use a struct vs class?
What scopes exist in Swift?
What is @escaping for closures?
Core iOS
General
Describe the application lifecycle.
Which 2 lifecycle methods handle push notifications?
What is a run loop?
How do you reduce dynamic dispatch in Swift?
Views
What is a CALayer? How are layers and views related?
What is the difference between frame and bounds?
What are all the reasons a button might not work? List at least 3.
What properties of a view can be animated?
How would you animate an infinite rotation? Or animate rounding a corner?
Scroll Views, Table Views, and Collection Views
Describe content inset, content offset, and content size.
How do you use auto layout to set the content size?
Describe the data source pattern and why table views and collection views use it.
What is cell recycling and why is it important?
How would you implement a table view with different cell types, similar to the Facebook feed? Can you still use cell recycling?
How would you implement infinite loading, i.e., automatically fetching the next page when the user reaches the bottom of the feed.
In which situations is it useful to use a table view vs a collection view? Given that a collection view is more flexible and powerful than a table view, why would you still use a table view?
Auto Layout
What is the difference between Auto Layout and Autoresizing masks?
What is the difference between content hugging priority & content compression resistance priority?
What is intrinsic content size?
How would you animate views with Auto Layout?
View Controllers
What are the view controller lifecycle methods?
How do you handle device rotation?
What is a container view controller? Describe how to implement a container view controller.
When would you implement a container view controller vs a custom view controller transition?
Navigation
What method do we use to pass data to another view controller that we are navigating to?
How do we pass data back when we are returning from another view controller?
How do you programmatically push/pop a view controller?
How do you programmatically present/dismiss a view controller?
Persistence
What are the different types of persistence in iOS, and when would you use each type?
What are the pros/cons of SQLite vs Core Data?
How do you handle schema migrations in Core Data?
Networking
What are the differences between NSURLConnection and NSURLSession?
Describe App Transport Security and how to configure it.
What features do AlamoFire add on NSURLSession?
Multithreading
UIKit is not thread-safe, what are examples of things you have to do in the main thread? How do you ensure that your code is thread-safe?
When using a 3rd party library like AlamoFire, what thread is the completion closure called in? Is that always guaranteed?
What is the difference between NSOperationQueue and Grand Central Dispatch?
When would you call dispatch_sync vs dispatch_async?
How would you implement a maximum number of concurrent operations using Grand Central Dispatch?
How does parallel multithreading (ex thread 1 waits on thread 2) work?
Extended iOS
What are the pros and cons of programmatic views vs Storyboard?
Describe the differences between MVC and MVVM.
Describe the basic usage of RxSwift? What are the pros/cons of reactive programming?
How would you implement cell re-ordering using a collection view? E.g., a user should be able to drag a cell into a different position in the collection view.
How would you securely store API keys?
Compare and contrast CocoaPods and Carthage. Which do you prefer?
How do you avoid memory leaks in iOS? How do you use Instruments to detect leaks?
What are some interesting updates in the latest version of iOS? Look at the latest iOS release notes and scan the titles of the most recent WWDC. This is sometimes asked to test your interest level in iOS and how well you track the latest.
Name 3 libraries that you like to use in apps and why?
Describe unit/integration testing in iOS. What are some popular open source libraries related to unit/integration testing?
Last updated