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 how to silent the noisy keyboard?
what are the two different smart groups in Xcode?
What is the difference between 'assign' and 'retain' keyword?
What are layer objects in iOS operating system?
0 Answers SwanSoft Technologies,
What is main thread checker?
How to fix tableviewcell dequeue issue ?
. How do you change the content of your app in order to change the views displayed in the corresponding window?
What is didreceivememorywarning method in you viewcontroller?
Define view object in iOS operating system?
0 Answers SwanSoft Technologies,
Give example scenarios when an application goes into inactive state?
What is iphone screen size?
What is delegate method?