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 |
. Name the app sate which it reaches briefly on its way to being suspended
Explain what is iphone reference library?
What is nsmanagedobjectmodel?
What is @dynamic in objective-c ?
What is difference between performblock: and performblockandwait:?
What is the purpose of reuseidentifier?
What is reference count in ios?
Explain difference between release and autorelease?
How do you create a fetched property?
What is ios technology?
What are ios categories?
What is nspersistentstorecoordinator? What duties does it perform?