After going through Ali, Baidu one, and two, I summed up 50 iOS interview questions

Foreword:

Gold, silver and silver have passed. According to statistics, many people will choose to change jobs in March and April. There are many reasons. After the year, a large number of employees will leave. Employees feel that the old company's treatment is not good? The salary is not high enough, I want to change to a new environment, etc. Therefore, March and April have become the peak season for recruitment and job-hopping

A while ago, I summed up 50 interview questions myself. Here, I share with you. I hope that friends who are looking for a job in May, this article of mine can help you.

As a developer, it is very important to have a learning atmosphere and a communication circle. This is my iOS communication group: 638302184, whether you are a novice or a big cow, welcome to join, share BAT, Ali interview questions, interview experience, and discuss Technology, let's exchange, learn and grow together! Hope to help developers avoid detours.

Base:

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

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 does the following code output?

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

7. Dynamic binding

8. The difference between Category, Extension and inheritance

9. Why do agents 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 under 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, create it in viewDidLoad of a vc

24. Without manually specifying the autoreleasepool, when is an autorealese object released? (For example, created in a vc's viewDidLoad)

25. OC complete message forwarding mechanism + code implementation [crit]

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?

27. How to manually trigger KVO of a value

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

29. What is the difference between serial parallel and asynchronous synchronization?

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

31. What is RunLoop?

32. Suppose there is a string aabcad, please write a program to remove non-adjacent repeated strings in the string, that is, the output result after the above string processing is: aabcd

@autoclosure (autoclosure)

34. How to optimize iOS app startup?

35. Swift interview questions:

36. How to prevent decompilation?

37. UITableView performance optimization, super practical

Thread:

37. Don't block the main thread

38. Talk about your understanding of multi-threaded development? How many ways to implement multithreading in ios?

39. What is the difference between a process and a thread? What is the difference between synchronous and asynchronous? What is the difference between parallel and concurrent?

40. ViewController life cycle

41. Multithreading in iOS

42. What are the principles of memory management? According to the default law. Objects generated by those keywords

Need to release manually? How to effectively avoid memory leaks when combined with property?

Who applies, who releases

43. What is the role of dispatch_barrier_async?

44. How to synchronize several asynchronous calls with GCD? (For example, load multiple images asynchronously according to several urls, and then synthesize a whole image after all downloads are completed)

http:

46. ​​What is the difference between http and https?

47. Can the server know whether there is a way to reach the client after the APNS push?

app:

48. 1. How can I see the header file of the App listed?

2. Which framework's source code have you read? Can you talk about its architecture?

49. iOS iAP in-app purchase review may fail

50. The problem that the virtual currency in the IAP in-app purchase causes the audit to fail?

Finally, I hope that all students can enter the company they want to go to. On the road of struggle, I firmly believe that we have never given up!

As a developer, it is very important to have a learning atmosphere and a communication circle. This is my iOS communication group: 638302184, whether you are a novice or a big cow, welcome to join, share BAT, Ali interview questions, interview experience, and discuss Technology, let's exchange, learn and grow together! Hope to help developers avoid detours.

Guess you like

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