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 |
Define ipa?
What is dynamic in iOS operating system?
Explain how an autorelease pool works at the runtime level
What is arc xcode?
What is closures in ios?
Explain code signing in ios?
What size is 1x and 2x?
Whats the difference between NSArray and NSMutableArray?
Explain place holder constraint
Explain formal protocols?
Explain app's state transitions when it gets launched?
What is the meaning of 'strong'keyword?