German iOS interview finishing (a bit messy in order)
Really sorry interviewer, video interview, my side is always no sound.
1.
-(void) Testfun
{
CGRect A;
.....
}
A is the memory on the heap, or on the stack?
2.. How to put a cgrect type of data on the heap? How many methods can you think of?
3. CGRect A;
[A retain];
Is it possible to compile
Has 4.autorelease Pool worked?
For auto release pool, can there be more than one auto release pool for the same thread?
If possible, if there is a variable [b autorelease]
So, which auto release pool is b being added to?
What's the relationship between 5.NSRunloop and thread? Must there be an auto release pool in a thread?
Have you used UIView 6? What's the difference between the first two? If we know bound/center, can we figure out frame?
7.uiviewcontroller loading mechanism What kind of, can you describe to me.
8. Can you tell me the mechanism of view hit test?
9. If using the native Apple code, help me write a code to request the Taobo home page.
10. Can you describe the concept of deadlocks in the operating system?
11. If we do nsmutabledictionary ourselves, can you describe the idea?
12 in the master's program, does the memory include design patterns and studies? Can you give me a description of how to construct the Observer pattern?
13 Have you seen anything about iwatch?
14 There is an array of mutable, how to implement the elements of the even order to delete all?
IOS interview (German)