What is difference between implementing a category and inheritance?
Answer:
You can add method to existing class even to that class whose source is not available to you.
You can extend functionality of a class without subclassing.
Read:
Most Important iPhone interview Questions and Answers
3. What is the difference between @interface and @implementation in iOS?
Answer:
@interface
It’s a keyword used to declare the Class.
@implementation
It’s a keyword used to define the Class.
Read:
Some important points About View Controller.
4.Which JSON framework is supported by iOS?
Answer:
SBJson framework is supported by iOS.
It is a JSON parser and generator for Objective-C.
SBJson provides flexible APIs and additional control that makes JSON handling easier.
From iOS 5 Onwards we are using NSJSONSerialization inherited from NSObject Base class.
Read:
iPhone Core Animation - Drawing a Circle
iOS Interview Questions with Answers part3
5. What is the purpose of UIWindow object?
Answer:
The presentation of one or more views on a screen is coordinated by UIWindow object.
Read:
Top 5 Frequently Asked iOS Interview Questions And Answers.
Swift Interview Questions And Answers part 1
An Introduction To The Swift Programming Language
Swift 2 Tutorial Part 2: Basics