Вы находитесь на странице: 1из 1

iOS Interview Questions

Author: Jeff Hodnett Version: 1.0 Email: jeff@applausible.com Twitter: @jeffhodnett

BEGINNER
How would you create your own custom view? Whats fast enumeration? Whats a struct? Whats the difference between a NSArray and a NSMutableArray? Explain retain counts. Whats the difference between frame and bounds? Is a delegate retained?

INTERMEDIATE
If I call performSelector:withObject:afterDelay: - is the object retained? Can you explain what happens when you call autorelease on an object? Whats the NSCoder class used for? Whats an NSOperationQueue and how/would you use it? Explain the correct way to manage Outlets memory.

ADVANCED
Is the delegate for a CAAnimation retained? What happens when the following code executes? Ball *ball = [[[[Ball alloc] init] autorelease] autorelease]; Outline the class hierarchy for a UIButton until NSObject. Explain the difference between NSOperationQueue concurrent and non-concurrent. Implement your own synthesized methods for the property NSString *title. Implement the following methods: retain, release, autorelease.

Вам также может понравиться