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 is lazy loading?
What is cocoa and cocoa touch?
What is a view controller in ios?
What is iphone sdk?
Would I be able to keep in touch with some c++ work in the equivalent .m record? Will it compile? Assuming no, what changes would it be a good idea for me to do to compile it?
How to de-symbolicate crash log?
Can we support the same application for iphone 3gs and iphone 5, 6, 7? Why not?
What is latest mac os version?
What language is ios written in?
Explain what is storyboard?
Explain difference between coredata & sqlite?
Explain about design patterns in iOS