What is the difference between typedef and enum?
Answer / Shubhansi
"In Objective-C, a `typedef` allows you to define a new name for an existing data type. An `enum` defines a new custom data type consisting of a set of named integer constants. For example:nn```objective-cntypedef NSInteger MyInt; // typedef for NSIntegernenum MyColors { Red, Green, Blue }; // enum for colors
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c type safe language?
How do you write an objective?
Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
How to call methods in objective c?
Is objective c statically typed?
What do you understand by protocol?
What does __ block do?
What is single inheritance in objective-c?
What is m files document management?
Does objective c have garbage collection?
What is difference between mutable and immutable?
What is objective c written in?