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
Do you know what are layer objects and what do they represent?
What is called before viewdidload?
What is dynamic typing in iOS operating system?
Mention the short-cut to edit variables in Scope?
Is ios development hard?
What is id in ios?
What is ios image?
What is nspersistentstore? Is it thread safe?
what are all instruments available in Xcode?
Will the new design mean I have to completely relearn how to use my phone?
What is block in ios objective c?
What are the features of ios?
Explain Apple push notification
What is difference between mvc and mvvm in ios?
What is protocol in ios swift?