iOS latest interview questions

Basic

1. How to make the objects written by yourself have the function of copying?

2. Tell me about your understanding of the weak attribute?

3. Topic: How to use the Swift mutating keyword?

4. What is the relationship between UIView and CALayer?

5. What is the output of the following code?


6. What is the role of @synthesize and @dynamic?


7. Dynamic binding

8. The difference between Category, Extension and inheritance

9. Why does the proxy use weak? What is the difference between delegate and dataSource of a proxy? What is the difference between block and proxy?

10. The difference between id and NSObject*

11. How to make the object written by yourself have the copy function?


12. When using some block APIs of the system (such as the block version of UIView to write animations), do you also consider the reference cycle problem?

13. NSString (or NSArray, NSDictionary) declared with @property often uses the copy keyword, why? What might be the problem if I use the strong keyword instead?

14. What is the relationship between UIView and CALayer?

15. What is the function of static? Bottom layer:

16. What are the processes before main()?

17. What is the basic principle of KVO?

18. How to use KVC in Swift?

19. What pattern matching does Swift have?

20. What happens when objc sends a message to an object?


21. What is the principle of static library? Have you ever written a statically compiled library yourself and what problems did you encounter?


22. What is runloop for? What does runloop have to do with threads? Does the main thread have runloop enabled by default? What about child threads?

23. Without manually specifying the autoreleasepool, when is an autorealese object released? (For example, when 24 is created in the viewDidLoad of a vc and the

autoreleasepool is not manually specified, when is an autorealese object released? (For example, it is created in the viewDidLoad of a vc)

25. OC complete message forwarding Mechanism + Code Implementation [Critical Strike]

26. For a timer triggered by the method of +scheduledTimerWithTimeInterval..., when sliding the list on the page, the timer will temporarily call back, why? How to solve it?

27. How to manually trigger A value of KVO

28. How to locate and analyze the places that affect performance in the project? And how to optimize performance?

29. The difference between serial and parallel, asynchronous and synchronous?


30. What is the thread? What is the process? What is the difference and connection between the two?

If you need detailed learning materials in this area, you can follow me. Other articles have contact information.

As a developer, it is very important to have a learning atmosphere and a communication circle. Whether you are a novice or a big cow, you are welcome to join and share BAT and Ali interview questions. , interview experience, discuss technology, and let's communicate, learn and grow together!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325534527&siteId=291194637