When interviewing iOS developers, entry points are very important, different entry points can lead to different results, and not finding the right entry point can not get a comprehensive understanding of the candidate. So this list of interview questions is more of a guide than a set answer, and can lead to more interesting and in-depth discussions based on the candidate’s responses.
If you have any good questions, feel free to post them in the comments section and we will keep you updated
General question
- What knowledge/skills have you acquired in the last two days?
- Have you worked on any cool or challenging projects lately?
- What books/articles have you read recently?
- How do you explain “television” to a child who has only been exposed to the Internet?
- Why do you want to learn programming, and what makes it fun for you?
- If a function is correct 7 times out of 10 and wrong 3 times, what might be the problem?
- What are your greatest strengths and how can you prove them?
- Have you ever published open source code on GitHub or worked on an open source project?
- What was the most recent technical challenge you faced? How did it work out?
- What are the common development tools?
- Familiar with CocoaPods? Can you give us a general idea of how it works?
- What are the most common version control tools? Can you give a general idea of how they work?
- What is the one skill you want to master this year? Why is that? How far have we gone?
- How do you use Instruments in general?
- How do you debug bugs?
- What design patterns have you used in your projects?
- How to implement singleton, what are the disadvantages of singleton?
- How does iOS manage memory?
Knowledge problem
- What is a response chain and how does it work?
- How do I access and modify private attributes of a class?
- What is iOS Extension? Can you list some common extensions?
- How do I serialize an array of custom objects to disk?
- What is Apple Pay? How does it work?
- What is the sandbox directory structure for iOS? What’s in the App Bundle?
- What does iOS signature look like?
- What are the two new apis for multitasking in iOS 7? What are the respective usage scenarios?
- Objective – C
class
How is it done?Selector
How is it converted to C function calls? UIScrollView
How is it implemented, and how does it capture and respond to gestures?- How does Objective-C add its own functionality to existing methods to do things like logging?
+load
和+initialize
What is the difference between?- How do I make categories support attributes?
NSOperation
What are the advantages over the COMMUNIST Party of China?strong
/weak
/unsafe_unretained
The difference between?- How do I define a property for Class that is externally read-only and internally readable?
- What does meta-class mean in Objective-C?
UIView
和CALayer
The relationship between?+[UIView animateWithDuration:animations:completion:]
How is the interior probably implemented?- When does “implicit animation” happen?
- How do I handle asynchronous network requests?
frame
和bounds
What is the difference between?- How to reduce a large image to 1/4 size thumbnail?
- What states will an App be in?
- How does Push Notification work?
- What is Runloop?
- What is Toll-free Bridging? When will it be used?
- What happens when the system gets a memory warning?
- What is the
Protocol
How is Delegate used in general? - Under what circumstances will an AutoRelease object be released?
- What are the performance issues with UIWebView? Are there alternatives?
- Why is NotificationCenter removeObserver? How to implement automatic remove?
- when
TableView
的Cell
When making changes, how do you animate them? - What is the
Method Swizzle
When will it be used?
Empirical problems
- why
UIScrollView
The scrolling will result inNSTimer
The failure? - Why does the layer revert to its original state when the Core Animation completes?
- How do you store sensitive information about users, such as login tokens?
- Have you used some open source components? Can you briefly talk about a few of them and the implementation of their usage scenarios?
- When will it happen
EXC BAD ACCESS
Exception? - When will Core Graphics be used? Are there any considerations?
- What are the usage scenarios of NSNotification and KVO?
- What should I pay attention to when using blocks?
performSelector:withObject:afterDelay:
What is the internal implementation? Is there anything to pay attention to?- Is there any optimization for how to play GIF images?
- use
NSUserDefaults
When, how do YOU handle Boolean defaults? (for example, return NO, whether it is true or not set) - What are some ways to scale an image, and what are the considerations when using CoreGraphics to scale?
- What are some ways to slim down a ViewController?
- What are some common Crash scenarios?
Complex problem
- Design a SlideShow that scrolls infinitely and automatically.
- Design a progress bar.
- Design a set of large files (such as hundreds of MB of video) download scheme.
- If I let you do it
dispatch_once
What would you do? - Design a system like iOS where Spotlight can be pulled down on the home screen. (Understanding of UIScrollView)
Programming to realize
- Snakes and Ladders a brief introduction to the implementation of “Snakes and Ladders”.
This is the end of the article, thank you for watching, just something to say to readers:
The iOS developer community is getting smaller and smaller, and to be honest, it’s always nice to see some feedback from readers on the back end, at least you guys are still working on iOS… In order to thank the readers, I would like to contribute some of my collection of programming dry goods to you, give back to every reader, I hope to help you.
Dry goods mainly include:
①iOS advanced development must-see hot books (classic must-see)
②iOS development technology advanced teaching video
③BAT and other major manufacturers iOS interview real questions + answers. PDF document
(4) iOS development in the senior interview “resume production” guidance video
You can take it if you need it; How to obtain, please refer to the specific content – my GitHub
Mine: GitHub address