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 iphone screen size?
What is delegate in ios with example?
What is nsfetchedresultscontroller?
How to deal with sqlite database?
What is @dynamic and any place where it is used?
What is difference between 'assign' and 'retain' keyword?
What is the purpose of UIWindow object in iOS operating system?
Mention what is the use of po command in xcode?
What is the use of double question marks (“??”) ?
Who calls the main function of you app during the app launch cycle in iOS operating system?
0 Answers TryTechnicals Pvt Ltd,
What is a singleton?
. Name the app sate which it reaches briefly on its way to being suspended