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 |
Push notification working in ios?
Enlist frameworks for cocoa touch?
How to deal with sqlite database?
What is 1x 2x?
How do you decide when to use infinite scroll or pagination in ios? : IOS Architect
Do you know what is iphone sdk?
What is oops in ios?
What is difference between performblock: and performblockandwait:?
How to parse json?
Explain how an autorelease pool works at the runtime level in iOS
0 Answers SwanSoft Technologies,
Is realm db free?
What is core data?