what is protocol? . The use of protocol?



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

Post New Answer

More Apple iOS Interview Questions

What is ios technology?

1 Answers  


How do I become an ios developer?

1 Answers  


What is mvc in ios?

1 Answers  


what are fetched properties? How do you create a fetched property?

1 Answers  


How to use core data objects between two threads?

1 Answers  


What are transient properties?

0 Answers  


What is dependency injection in ios?

1 Answers  


What compilers apple using ?

1 Answers  


What is meaning of 'copy' keyword?

1 Answers  


How to send crash report from device?

1 Answers  


what are all instruments available in Xcode?

1 Answers  


What are the Steps for using coredata?

1 Answers  


Categories