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
What is the viper?
What is core data stack?
What is storyboard?
What is plist?
What is nsmanagedobjectmodel?
Procedure to push the app in appstore?
Explain how the push notification works in iOS operating system?
What is mvc pattern in ios?
How to shut off message alerts in ios?
What are the location services?
Explain how you can migrate to Xcode?
What does use core data mean in xcode?
What are layer objects and what do they represent in iOS operating system?
Which is the default for synthesized properties?
What is main thread checker?