How do you define a protocol?
Answer / Manoj Kumar Tiwari
"To define a protocol in Objective-C, you use the `@protocol` directive. Here's an example of defining a simple protocol:n```n@protocol MyProtocoln// Optional methods and properties go heren@endn```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is single inheritance in objective-c?
Which language does apple use?
What is the difference between underscore and self (i.e self.xx and _xx) ?
Explain what are the attributes of category?
What is difference between nsstring and nsmutablestring?
How messaging works in objective-c?
What is the use of objective c?
How to create uibutton programmatically in objective c?
What's the difference between a thread safe and a thread unsafe function?
What are the types of ios binaries you can create using xcode?
How to use objective c file in swift?
Can you retain delegates?