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 onboarding and why is it so important for mobile design? : IOS Architect
Difference between release and autorelease ?
Explain the working of manual memory management?
What json framework is supported by ios (iphone os)?
What are all the newly added frameworks iOS 4.3 to iOS 5.0?
How to send crash report from device?
Explain interfaces?
Explain usage of struct?
What happens when we invoke a method on a nil pointer?
What is abstract class in ios?
Can apk files run on ios?
What does 2x resolution mean?