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 application lifecycle in ios?
What is iphone architecture?
what is the difference between nonatomic & atomic ? which is thread safe and why
Why don’t we use strong for enum property in objective-c ?
What is singleton design pattern in ios?
What are properties in ios?
What is the difference between inheritance and category?
What is nsfetchedresultscontroller? How do you turn on content monitoring?
What is the difference between viewdidload and viewdidappear?
What is meaning of 'retain' keyword?
What NSAutorelease pool
Explain xctest test case code.