3
Q:

How can we achieve singleton pattern in iOS? 

Answer:



Q:

What is ARC ?

Answer

ARC is a compiler-level feature that simplifies the process of managing the lifetimes of Objective-C objects. Instead of you having to remember when to retain or release an object, ARC evaluates the lifetime requirements of your objects and automatically inserts the appropriate method calls at compile time.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology
Job Role: Analyst

2 865
Q:

What is Automatic Reference Counting (ARC) ?

Answer

ARC is a compiler-level feature that simplifies the process of managing the lifetimes of Objective-C objects. Instead of you having to remember when to retain or release an object, ARC evaluates the lifetime requirements of your objects and automatically inserts the appropriate method calls at compile time.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

2 3416
Q:

What is the purpose of UIWindow object?

Answer

The presentation of one or more views on a screen is coordinated by UIWindow object..

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

7 2788
Q:

What are the tools required to develop iOS applications?

Answer

IOS development requires Intel-based Macintosh computer and iOS SDK

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

2 1309
Q:

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.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

5 7875
Q:

Which object is create by UIApplicationMain function at app launch time?

Answer

The app delegate object is created by UIApplicationMain function at app launch time. The app delegate object's main job is to handle state transitions within the app.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

6 2095
Q:

Who calls the main function of app during the app launch cycle?

Answer

During app launching, the system creates a main thread for the app and calls the app’s main function on that main thread. The Xcode project's default main function hands over control to the UIKit framework, which takes care of initializing the app before it is run.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

2 2541
Q:

Give example scenarios when an application goes into InActive state?

Answer

An app can get into InActive state when the user locks the screen or the system prompts the user to respond to some event e.g. SMS message, incoming call etc.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS - Technology

2 1244