2019 iOS interview questions summary (topics and answers uploaded Githup)

Objective_C language features

First, the classification
two, extended
three agents (Delegate)
Fourth, notice (NSNotification)
five, KVO (Key-value observing)
six, KVC (Key-value coding)
seven key attributes

runloop

A, RunLoop concept
Second, the data structure RunLoop of
three, RunLoop of Mode
IV implementation mechanism RunLoop of
five, RunLoop and NSTimer
six, RunLoop and thread

runtime

  • objc when sending a message to an object, what happened?
  • What objc in sending a message to a nil object is going to happen?
  • objc send a message to an object [obj foo] and objc_msgSend What is the relationship between function ()?
  • When will the reported abnormal unrecognized selector?
  • You can increase the instance variables to get the compiled class? Can you add an instance variable to the class created in runtime? why?
  • After adding a property to the class, the class structure in which elements will change?
  • What isa objc of a pointer to an object? what's the effect?
  • [self class] 与 [super class]
  • How to find the corresponding runtime IMP address selector?
  • _objc_msgForward function is doing what, what would directly call it happen?
  • How runtime automatically set to nil weak variables? You SideTable know it?
  • isKindOfClass and isMemberOfClass
  • Use runtime Associate associated method object, you need to release in dealloc when the main subject of it?
  • What is the method swizzling (commonly known as black magic)
  • Compile Error / Runtime Crash / NSLog…?
  • Code questions (a)
  • Code questions (b)

#### the UI-related

A, UIView and CALayer
Second, the event delivery chain and view response
Third, the image display principle
four, UI Caton dropped frames reason
V. optimization slide
six, UI principles drawn
seven off-screen rendering

Block-related interview questions

First, what is Block?
Two, Block variable intercepted
Third, several forms of Block

Multithreading

First, the process
two threads
Third, the relationship between process and thread
four multi-process
five or multithreaded
six task
seven queue
eight multi-threaded in iOS
nine, GCD queue ---
ten, deadlock
eleven, GCD task the execution order of
twelve, dispatch_barrier_async
thirteen, dispatch_group_async
fourteen, Dispatch Semaphore
XV delay function (dispatch_after)
XVI using dispatch_once achieve a singleton
XVII NSOperationQueue advantage of
eighteen, NSOperation and NSOperationQueue
nineteen, NSThread + runloop achieve permanent thread
XX, spin and mutex lock

Memory Management

A memory layout of
two, the memory management program
three, the MRC (manual reference count) and ARC (automatic reference counting)
four, circular references

Algorithm interview questions

1, without intermediate variables, A and B values of the exchange in two ways
2, greatest common divisor
3, the analog operation stack
4, sorting algorithm
5, binary search (binary search)
6, a set of linear structure tree structure pattern structure
7, the data structures
8, singly linked lists \ doubly linked \ circular linked list
9, binary / balanced binary tree
10, river classic problem, ultra-detailed analysis
11, to reverse a string
12, the ordered merge array
13, HASH algorithm
14 Find two child views a common parent view
15, seeking a disordered array median

Network-related

A request packet and response packet
two, the HTTP request method
three, HTTP features
four difference HTTPS and HTTP
V. setup procedure HTTPS connection
six, symmetric encryption and asymmetric encryption
seven, respectively C, python , GCDAsyncUdpSocket achieved UDP traffic
eight, using python Udp realize communication demo
nine, iOS end simple UDP-based chat demo

Performance Optimization

1. Basic Concept
2 detects how offscreen rendering:
3. how detection layer blend:
4. rasterization
5. Entry
6. Intermediate
7. High

75 Programmers face questions logical thinking

Continuous update, remember FAVORITE Oh! .....

Guess you like

Origin blog.51cto.com/14121524/2412956