next is recruiter test question :
another question : what does KVO stand for?Question 1: When running out of memory, how does the system give your app one last chance to prevent being killed?a) Autoreleaseb) Jetsamc) Memory Warningd) UIApplicationWillTerminateNotification Question 2: What is the difference between a UIView's 'frame' and its 'bounds'a) 'frame' defines the view's position and size; 'bounds' defines its clipping rectb) 'frame' defines the view's clipping rect; 'bounds' defines its position and sizec) 'frame' defines position and size in the coordinate space of its superview; 'bounds' defines position and size in the coordinate space of the view itselfd) They are equalQuestion 3: The delegation pattern is often used to:a) Report value changes from a Model to a Controllerb) Communicate messages back from one object to its owning objectc) Broadcast messages from a singleton object (e.g. NS User Defaults) to its listenerd) All of the aboveQuestion 4: Which of the following cannot be retained:a) NSString literalb) NSNullc) NSIntegerd) NSNotificationQuestion 5: A block cannot:a) Be subclassedb) Be retained or releasedc) Access 'self' from the scope in which it is declaredd) Be passed as an argument
yesterday Facebook Engineer give me a Skype interview:
@interface UIControl: UIView- (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;@end@implementation UIControl- (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents{// How would you implement this?}// A UIControlEventTouchUpInside just happened. Let every interested target know…- (void)_fireTargetsAndActionsForEvent:(UIControlEvents)controlEvent{// ???}[myButton addTarget:self action:@selector(didTapButton:) forControlEvents:UIControlEventTouchUpInside];
others question:
how runloop work and autorelease object?
will lead to myButton retain target self?
_fireTargetsAndActionsForEvent complexity?
Today morning, I receive recruiter mail, he told I don't get chance to next round interview.
I'm very sad, maybe there have many candidates who are best than me. So I don't have chance work for the company, the interview experience is good for me.
Really I enjoy your blog with an effective and useful information. Very nice post with loads of information. Thanks for sharing with us..!!..iOS Online Course Bangalore
回复删除