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 |
What is difference between objective c and swift programming?
Can we implement dealloc in arc? If yes, what is the need to do that?
What is the primary use of the category in the objective-c?
What is the protocol in objective c?
What is better objective c or swift?
What's the difference between a thread safe and a thread unsafe function?
What are nsautoreleasepool and how can we use them?
How to use swift protocol in objective c?
When might you use a cfarray/dictionary instead of a nsarray/dictionary?
What is method swizzling in objective c and why would you use it?
How do you write an objective statement?
How is #import different from #include?