Answer:
In the context of an NSOperation object, which runs in an NSOperationQueue, the terms concurrent and non-concurrent do not necessarily refer to the side-by-side execution of threads.
Read:
Core Data Interview Questions and Answers
Top iOS Interview Questions And Answers for Beginners
3.Implement your own synthesized methods for the property NSString *title.
Answer:-
Well you would want to implement the getter and setter for the title object. Something like this
- (NSString*) title {
return title;
}
- (void) setTitle: (NSString*) newTitle {
if (newTitle != title)
title = [newTitle retain]; // Or copy, depending on your needs.
}
Read:
Top iOS interview Questions And Answers Collection
iOS Interview Questions And Answers For 1-2 years Experienced Candidates.
4.Is Objective C support multiple inheritance? How it’s over come?
Answer:-
Objective-C doesn't support multiple inheritance. You could use a protocol, composition and message forwarding to achieve the same result.
A protocol defines a set of methods that an object must implement (it's possible to have optional methods too).
Composition is basically the technique of include a reference to another object and calling that object when it's functionality is required.
Message forwarding is a mechanism that allows objects to pass messages onto other objects, for example, an object that is included via composition.
Read:
Some important points About View Controller.
iOS Interview Questions And Answers Part 10
5.Explain Application lifecycle
Answer:
Chronology of an application:
When the process is started, it runs the NSApplicationMain function, which creates an instance of NSApplication.
The application object reads the main nib file and unarchives the objects inside. The objects are all sent the message awakeFromNib.
Then the application object checks for events.
Read:
Basic iOS interview Questions And Answers
Top 5 Frequently Asked iOS Interview Questions And Answers.