What is factory methods ? What is the advantage of using it ?
Answer / babu
Class factory methods are implemented by a class as a convenience for developers. These methods combine allocation and initialisation in a single step and return the created object.
NSDate:
Eg: + (id)dataWithBytes:(const void *)bytes length:(unsigned)length;
NSDictionary
Eg:+ (instancetype)dictionary;
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible to write a program without using nib file
Are document objects required for an application? What does they offer?
Functionality of accelerometer of an iphone
What are moments and collections?
What is core data stack?
What makes react native special for ios?
Explain concept of notification center, local and remote notifications.
What is called before viewdidload?
What framework is used to construct application's ios user interface?
Differentiate 'app id' from 'bundle id'.
What is an ios framework?
Explain commonly ios libraries