Half a year trying, I finally put 100 enterprises iOS finishing face questions over (with answers)!

#### 100 well-known enterprises this year to face questions iOS collection:

You have to have here;

There are also companies want;

Start with the basics to advanced, in-depth bottom

188 face questions sorted out, all dry goods

These are all topics with categories, each title will have a relatively answers, because too many words so I put together a document, the document get the address, iOS exchange group of the industry created: 763,164,022, plus group in the group file download

#### directory shows:

1, the difference between swift and oc of
2, build links
3, synthesize denamic &
4, commonly used in project development tools What?
. 5, the UITableView & UICollection
. 6, the NSObject & NSProxy
. 7, Object & Swift
. 8, & traditional values notification push notifications (Remote & Local)
9, third-party libraries & third-party platform
10, NSCache & NSDcitionary
. 11, and the UIView setNeedsLayout method of setNeedsDisplay
12 is, UILayer & the UIView
13 is, layoutSubviews & drawRects
14, the UDID & the UUID
15, the CPU & the GPU
16, points (pt) & pixels (PX) . 17, attributes and member variables br />
18 is, the difference between int and NSInteger of
(1) import and the include
(2) @class
(. 3) & global static variable

19, classes and objects
(1) Classification which can declare property to expand the agreement?
(2) the difference between inheritance and category
(3) classification role
limitations (4) Classification

20 is, category & Extension
21 is, Foundation
(. 1) strings
(2) taken string
(3) format

22, NSArray and NSDictionary
(. 1) to iterate the iOS / dictionary methods
(2) the NSNumber NSValue
(. 3) Other
(4) How to avoid circular references

23, CFSocket use and which of steps
24, Core Foundation provides several methods which operate on Socket?
25, parses the XML file, which has several ways?
26. What is the sandbox model? Which operation belongs to the category of private api?
27, in which an object method: self.name = "object"; and name = "object" What's the difference?
28, please provide a brief description of when to call viewDidLoad and viewDidUnload
29, create way controller, the view of
30, brief memory partitioning
31, queue and stack What is the difference
32, iOS system architecture
33, three kinds of controls are mainly in response to an event
34, which constitute xib file is divided into three icons? What has the function
35, the life cycle of brief view of the control device
36, app life cycle of the project
life cycle (1) applied
(2) a brief description of what APP boot process, main document talking about, main function What function ? What is the role?
(3) UIApplicationMain action function
(4) main function operates

37, the animation, which has several basic types; table view, which has several basic mode.
38, simple table shows what attributes need to set a UITableView to achieve any agreement?
39, Cocoa Touch provides what kinds of Core Animation transition type?
40, UIView and CLayer What is the difference?
41, three core concepts of Quatrz 2D drawing functions and what its role briefly
42, iPhone OS provides several major audio playback method?
43, the use of which AVAudioPlayer class framework calls, use the steps?
44, which has several gestures notification method, the method name clearly written?
45, ViewController of didReceiveMemoryWarning how to be called
46, when a delegate, when to use the Notification?
47, with the preprocessor directive #define to declare a constant that in one year the number of seconds (ignoring leap year issue)
48, write a "standard" macro MIN, the macro input two parameters and returns the smaller one.
49, keyword const What are the implications? Modified class it? Static effect for the class it? C as well as the role of extern
50, keyword volatile What are the implications? And give three different examples
51, a parameter can be either const can also be volatile? A pointer can be volatile? Explain why.
52, the role of the static keyword
53, to name a few process synchronization mechanism, and compare their advantages and disadvantages.
Way communication between the 54, the process
55 because the process deadlock
56, the four necessary conditions for deadlock
57, deadlock handle
58, cocoa touch framework
59, what pool is automatically released, how they work
60, what to pay attention to the place on the sprintf, strcpy, memcpy use
61, you know svn , cvs version control tools such it?
62, what is the Push
63, static link library
64, OC three characteristics
(1) package _ dot syntax
(2) inherited
(3) polymorphism

65, how to achieve polymorphism OC
66, strengths and weaknesses of Objective-C
67 for OC, what do you think the biggest advantage and the biggest drawback is that? For shortcomings, there are no available method to bypass these problems to achieve demand. If so, you have not considered or implemented OC had to re-implement the function, if any, specifically how to do?
68, oc can not be amended and modified type
69, we are talking oc is a dynamic language runtime What does it mean?
70, except notify and protocols?
71, what is the push message?
72, about polymorphism
73 What is a verb?
74, is involved in the project done network access, what target to complete the network function?
75, a brief introduction NSURLConnection class and + sendSynchronousRequest: returningResponse: error: and - initWithRequest: the difference between the two methods: delegate ?

76, to talk about memory management and process Object-C's?
77, Object-C have a private way? Private variables?
78, in response to talk chain
79, delivery time & responder chain
80, frame and bounds are different?
81, any different method, and a selector?
82, -OC garbage collection?
83, what is the delay loading?
84, whether embedded in a view controller two tableview controller?
85, a tableView whether the two can be associated with different data sources? how would you deal with?
86, when to use NSMutableArray, when to use NSArray?
87, given commission examples of methods and method Data Source spoken UITableVIew of
88, how many autorelease objects can be created in the application, is there a limit?
89, if we do not create a memory pool, if there is memory pool available to us?
90, when in need the program creates a memory pool?
91, those NSObject class method frequently used?
92, what is the simple construction method?
93, how to use Xcode generic design applications?
94, UIView animation effects are those?
95, how Object-C inherit it? If not replaced by what? subclass of cocoa in all classes are NSObject of
96, memory management Autorelease, retain, copy, assign a set method and meaning?
97, how to mix C and obj-c
98, class action? What is the difference in class inheritance and implementation?
99, category and class extends difference.
100, interfaces and protocols in the concept of oc in java What is the difference?
101, the difference between a deep copy and a copy in front
(1) What is the deep shallow copy copy
(2) When using strings Copy, strong
(3) where the string memory area
(4) mutablecopy and copy @property (copy) NSMutableArray * arr ; write what is the problem
(5) how to make custom classes can use the copy modifier

102, for the statement NSString obj = [[NSData alloc] the init]; what type of object obj, respectively, at compile-time and run-time?
103, # import with #include and what is the difference, @ class it, #import <> with #import "" and what is the difference?
104, Objective-C class multiple inheritance can it? Why can implement multiple interfaces? What Category is? Rewrite a class classification method inherited good or good? Why?
105, with #import and #include What is the difference, @ class it, #import <> with #import "" and what is the difference?
106, write a setter method used to complete the @Property (nonatomic, The retain) NSString
name, write a setter method for accomplishing @property (nonatomic, copy) NSString * name
107, common Objective-C data types are those, and basic data types C, what is the difference, such as:? NSInteger and int
? 108, the object id declared what features
109, Objective-C how memory management , talk about your views and solutions?
110 atoms (atomic) with non-atomic (non-atomic) property What is the difference?
111, see the following program, the first of what will NSLog output? At this time of retainCount is str how many? second and third? Why?
112, nothing happens several principles memory management? those object key generated by the need to manually release according to the default rules? when combined property and how to effectively avoid internal Memory leak?
113, how to conduct performance testing on iOS devices?
114, design pattern
(1) mvc mode
(2) singleton pattern
(3) mvvm mode
(4) observer pattern
(5) the factory mode
(6) proxy mode
(7) Mode policy
(8) Adapter mode
(9) Template mode
(10) appearance mode
(11) creation mode
(12) MVP mode

115, MVVM principle analysis mode
116, talk of several commonly used by value
117, when the delegate use, when to use the Notification
1 18, for an understanding of a single embodiment
119, analysis agent from the perspective of design pattern, and notification KVO difference? framework ios SDK provides the use of what design patterns, Why? What are the advantages and disadvantages?
120, KVO, NSNotification, delegate and block the difference between
121, runtime (RUNTIME)
122, Runtime / Message forwarding mechanism
(1) Runtime
1.1, what is Runtime
1.2, Runtime what to use, usage scenarios
(2) messaging
2.1, message forwarding principles of
2.2, SEL isa super cmd What is
(3) dynamic binding

123, for crash analysis using bugly
124, jenkens continuous packing
125, the KVO & KVC
(. 1) underlying implementation
(2) KVO Overview
(3) KVC Overview

126, what is the KVO and KVC?
KVO and KVC
(1) How to call a private variable, how to modify the read-only attribute system, KVC search sequence
(2) What is the key - value, what is the key path
(3) kvo implementation mechanism
(4) KVO property calculation, dependent on the key set
(5) KVO collection properties
(6) kvo usage scenarios

127, SDWebImage (SDWebImage implementation mechanisms)
(1) The main function
(2) Cache
(3) and the disk cache memory caching

128, frame SDWebimage caching mechanism
129, network security
safety principles password

130, multi-threaded
(1) the concept of multi-thread
action (2) multi-threaded
(3) using the scene

131, the difference between what NSOperationQueue and GCD
132 difference, GCD and NSThread of
133, what is the difference and association process and thread is?
134, do not perform two asynchronous time-consuming operation, and other time-consuming twice after operations are finished, go back to the main thread to perform operations using queues ( dispatch_group_t) quickly and efficiently achieve the above requirements
135, GCD choose to use at what time project, when selecting NSOperation?
136, multi-threading technology in contrast to iOS
137, multithreading advantages and disadvantages
138, the delay operation iOS
139, a serial synchronous and asynchronous queues main queue
140, the resource solution snatch
141, dispatch_barrier_asyncwhat is the role of?
142,, NSC, MOC, NSObjectModel what you need to create or pass in a thread in a multithreaded Core Data in? What is your policy increasingly realized?
143 + difference (void) load and (void) initialize the difference between load and initialize method +
144, and the difference between HTTP's post, and practice how to select them?
145, talk about the difference between UDP / TCP's?
146, the difference between http and scoket communication? Socket connection method associated libraries, TCP, UDP, and several common ways HTTP connections?
147, commonly used in several ways HTTP request
148, block
when (1) the use of block what happens reference cycle, how to solve?
(2) how to modify the block external variables within the block?
(3) Block & MRC-Block
(4) What is the block
(5) block implementation principles
(6) on block
(7) using block and use delegate to complete the commission model What are the advantages
(8) multi-threading and block
(9) talk on the understanding of the Block? and write using Block execution UIVew a movie?
defined above write code Block (10) (Continued title)

149, Weak, strong, copy, assign the use of
(1) what circumstances the use of weak keywords, assign different compared to what?
(2) how to use copy keywords?
(3) weak & strong
(4) The wording will be a problem: the @Property (copy) NSMutableArray * Array
(5) how to make your own class with a copy modifier? How to override setter with a copy keywords?
What is the nature (6) @property is? ivar, getter, setter is how to generate and add to this class
(7) ivar, getter, setter is how to generate and add to this class?
NSString (or NSArray br /> (8) with @property declaration, NSDictionary) often use copy keywords, and why? If you use strong keywords that might cause a problem?
(9) @protocol category and how to use the @Property
(10) Runtime how to find the corresponding IMP address selector?
(11) retain and copy the difference
(12) copy of use and strong?
(13) NSString and NSMutableString, former security thread, which is thread-safe.
Effect (14) readwrite, readonly, assign , retain, copy, weak, strong, nonatomic properties

150, OC and JS interaction (iOS mixed with H5)
to optimize the performance of TableView
UITableView core idea of
optimizing UITableView mainly from three aspects:

151, TableView why card?
152, UITableView
(. 1) UITableView core ideas
(2) defines the height
(3) custom height principle
(4) performance optimization UITableView cliché of
(. 5) cell height calculation
(5.1) given the high cell and dynamic height Cell
(. 6) to render the TableView
number (7) to reduce the view
(8) to reduce excess drawing operation
(9) not to be dynamically added subView Cell
(10) Asynchronized UI, do not block the main thread
loaded on demand corresponding to (11) slide content
(12) issues off-screen rendering
(13) off-screen rendering optimization

153, Shun SDK uses
154, Bluetooth
155, how to save data in the iPhone application?
156, what is the CoreData?
157, what is NSManagedObject model?
158, what is NSManagedObjectContext?
159, iOS platform how to do data persistence? Coredata sqlite and whether the necessary connection? coredata it is a relational database?
160., the CoreData the SQLite3 &
161, data storage
(1) data storage technology
in several ways (1.1) data storage
(1.2) of each characteristic (examination site interview)
(1.3) preference (Interview test sites)
(1.4) Archive (Interview test sites)
(2) database technology (SQLite & CoreData)

162, Objective-C difference between stack and heap?
163, & memory leaks out of memory
164, the stack & stack
(1) stack space allocated difference
(2) the difference between the stack cache mode
(3) the difference between stack data structure

165, a memory management
(1) memory area
difference (1.1) of the heap and stack
(1.2) iOS memory area
(2) of the string memory management
(3) How do you optimize memory management
(4) circular references
(5) autorelease of using
(5.1) factory method Why not release the object
(5.2) ARC under autorelease usage scenarios
(5.3) is automatically released how pools work
(5.4) to avoid memory peak
(5.5) ARC and MRC's mix
(5.6) NSTimer memory management
(5.7 ) the principle of ARC

166, runloop
167, fmmpeg frame
168, fmdb framework
169,320 frame
170, and the relationship between UIKit and CoreAnimation CoreGraphics what? Whether in development over CoreAnimation and CoreGraphics?
171, trasform
172, point talking about the difference between animation and layer, view the
173, with a view layer
174, a parallel hierarchy of
capacity 175, layer
176, use layers
177, core drawing
(1) View layer and the difference between
the difference (2) new and the alloc init

178, animations
179, UICollectionView
(1) how to achieve waterfall, flowing layout
(2) and using the difference between the UITableView

180 [, the UIImage
181, Webview
182, described squares algorithm
183, FIG achieve image carousel
184, iOS network frame
185, the network
(1) Network Infrastructure
(2) transmission network
(3) AFN

186, & AFNetworking ASIHTTPRequest & MKNetWorking
(. 1) underlying implementation
(2) for processing data returned by the server
(3) to listen request procedure
(4) difficulty in using the file upload and download files
(5) Network Monitoring
(6) ASI other useful features provided by
(7) MKNetworkKit

187, performance optimization
188, the algorithm

Half a year trying, I finally put 100 enterprises iOS finishing face questions over (with answers)!

Guess you like

Origin blog.51cto.com/14121524/2409551