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 |
Difference between nil and Nil.
What is callback in ios?
What is a background thread?
A tableview with while tapping on cell show a popOver. and tapping on it move to another view controller, is it possible if yes? then how?
How to use reusable cell in uitableview?
Can you pass same core data objects between different threads and modify?
Are ios developers in demand?
What’s the difference between not-running, inactive, active, background and suspended execution states?
What performance issues can you face when using coredata?
When can you get ios 13?
Define 'atomic' keyword?
Explain @synchronized ,@dynamic