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 |
Explain the features is ios 6?
List the devices compatible with ios 11? : IOS Architect
What is ios application life cycle?
what are all instruments available in Xcode?
What size is 1x and 2x?
Can you explain ios design patterns?
What is use of nsoperation? How nsoperationque works?
Explain arc?
Explain the difference between strong and retain.
Explain how app delegate is declared by Xcode project templates?
Describe the functionality of accelerometer of an iphone ?
What is nsoperation and nsoperationqueue?