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 sandbox in iOS operating system?
Why do we use synchronized ?
Did you used CLRegion? How its working?
What is difference between unit tests and ui test in xcode?
What is view object in iOS operating system?
Name and explain the iOS app states.
What are properties in ios?
Difference between retain and assign ?
What is context in core data ios?
Explain retain counts in iOS operating system?
What is meaning of 'atomic' keyword?
What are different ways that you can specify the layout of elements in a uiview?