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 a memory leak?
What is mvvm in ios swift?
Is apple ios based on linux?
Can you please explain the difference between frame and bounds?
What is the difference between retain & assign in iOS operating system?
Explain code signing in ios?
What is called before viewdidload?
Explain commonly used third party libraries
What is mvc in ios?
What is core data stack?
What is a difference between stack and heap memory?
What design patterns do you use in ios? : IOS Architect