Answer Posted / 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 |
Post New Answer View All Answers
How are non-atomic and atomic properties different?
Why don’t we use strong for enum property in objective-c ?
What is categories in iOS?
Explain the application lifecycle in ios?
Explain how to silent the noisy keyboard?
How is retain different from assign?
What is cocoa touch in ios?
Explain the difference between nil and nil?
What is nsmanagedobject?
What are ibeacons in ios? : IOS Architect
Difference between release and autorelease ?
What are the sorts of ios binaries you can make utilizing xcode?
Explain the usage of struct?
What is grand central dispatch ios?
What is a model class?