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 in xcode?
What is a background thread?
What are the App states in iOS operating system? Explain them
What is weak and strong in ios?
What is code signing in iOS operating system?
What is closures in ios?
What are various singleton instances provided by frameworks?
Mention the short-cut to edit variables in Scope?
What is difference between synchronous and asynchronous in web request in iOS operating system?
What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?
What is Automatic Reference Counting (ARC) in iOS operating system?
What are moments and collections?
What is categories in iOS?
What is the meaning of 'weak' keyword?
What is id in ios?