what is protocol? . The use of protocol?
Answer / 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 |
What is ios technology?
How do I become an ios developer?
What is mvc in ios?
what are fetched properties? How do you create a fetched property?
How to use core data objects between two threads?
What are transient properties?
What is dependency injection in ios?
What compilers apple using ?
What is meaning of 'copy' keyword?
How to send crash report from device?
what are all instruments available in Xcode?
What are the Steps for using coredata?