Answer Posted / babu
Protocol is the named list of independent methods. Protocol declaration having two sections
@required
In this section you will declare all required methods. If a class adopting this protocol should implement all required methods
@optional
In this section you will declare all optional methods.
Eg: @protocol myViewProtocol
@required
-(void)passDataToNextClass : (NSString*)myViewName
@optional
-(void)passDataToNextClass : (NSString*)myViewName
@end
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is appdelegate?
What does 2x resolution mean?
What are the different store migration options? When are they used? How do they work? What is mapping model?
Please explain what is difference strong and weak reference?
What is difference strong and weak reference ? Explain.
What is suspended state in ios?
What is 'notification'?
What does static analyser do?
Explain the difference between coredata & sqlite?
What are ios apps written in?
How you can add frameworks in xcode project?
How to send your device id to an iphone developer?
What is difference between nsnotification and delegate?
What is nsuserdefaults?
What is the meaning of 'strong'keyword?