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 are the different store migration options? When are they used?
What are the Different types of persistent stores?
Which JSON framework is supported by iOS?
How to do upload of large sized video file to server ? while uploading user presses “Homebutton” How long will execute?
What is latest ios version?
What is an NSOperationQueue and how/would you use it in iOS operating system?
what are fetched properties? How do you create a fetched property?
What are all the newly added frameworks iOS 4.3 to iOS 5.0?
What is core data stack?
Explain UIApplication delegate
How do I exit safe mode on my iphone?
How do you decide when to use infinite scroll or pagination in ios? : IOS Architect