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 |
What design patterns do you use in ios? : IOS Architect
What language is ios based on?
Is there any garbage collector concept available in iOS?
How to silent the noisy keyboard?
How to registering your device with the program portal for iphone development?
UI updation in seperate thread is it possible ?
Is ios development hard?
Why don’t we use strong for enum property in objective-c ?
Explain what is storyboard?
How would you create your own custom view in iOS operating system?
0 Answers TryTechnicals Pvt Ltd,
What is foundation framework in ios?
Explain what is the stack of autorelease pools. How autorelease pool work under the hood?