What is an instancetype?
Answer / Ashish Soni
In Objective-C, 'instancetype' is a type qualifier that can be used to specify the return type of a method or property. It tells the compiler that the method returns an instance of the class (or a subclass) where the method is defined. Using 'instancetype' can make your code more flexible and easier to maintain.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is synthesize objective c?
What are the three subatomic particles?
Is objective c faster than swift?
What is an extension?
What is 'protocol' on objective c?
What is objective c & why it is used for?
Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
What is difference between c and objective c?
Is swift based on objective c?
Which language does apple use?
How to print string in objective c?
What is instance variable objective c?