The iPhone runs Apple's OS-X operating system iOS.
The first iPhone was unveiled by Steve Jobs, then CEO of Apple, on January 9, 2007, and released on June 29, 2007
iOS Interview Questions And Answers Part 24
iOS Interview Questions And Answers Part 25
2.What is iPhone SDK?
Answer:
A software development kit (SDK) released by Apple that allows people to write applications for both the iPhone and the iPod Touch.
The iPhone SDK includes the Xcode IDE, Instruments, iPhone simulator, frameworks and samples, compilers, Shark analysis tool, and more.
Read:
Top 5 Frequently Asked iOS Interview Questions And Answers.
Most Important iPhone interview Questions and Answers
3. What is the difference between drain, release, dealloc and retain in Objective-C?
Answer:
-retain increase the reference count on an object
-release decreases the reference on an object
-drain is used in place of release on ONLY for NSAutoreleasePool objects due to some arcana related to the Objective C garbage collection
-dealloc is called by the system once the retainCount of an object hits 0. It is where you clean up various things your object has (like a deconstructor or finalizer).
You should NEVER call it directly, except for calling [super dealloc] at the end of your dealloc routines.
Read:
Top iOS interview Questions And Answers Collection
iOS Interview Questions And Answers For 1-2 years Experienced Candidates.
4. Class methods vs Instance methods and visibility of methods ?
Answer:
Class methods (most languages use the keyword static)
-Operate on Class variables (they can not access instance variables)
-Do not require an object to be instantiated to be applied
-(+) denotes a class method
Instance methods
-Operate on instances variables and class variables
-Must have an instantiated object to operate on
-(-) denotes an instance method.
Read:
Most Important iPhone interview Questions and Answers
Core Data Interview Questions and Answers
5. how to achieve getter and setter property in iOS?
Answer:
By using these two preprocessor directives @property and @synthesize we can achieve getter and setter.
Read:
Swift Interview Questions And Answers part 1
An Introduction To The Swift Programming Language
Swift 2 Tutorial Part 2: Basics