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 are the different store migration options? When are they used?

0 Answers  


What are the Different types of persistent stores?

0 Answers  


 Which JSON framework is supported by iOS? 

1 Answers   B-Ways TecnoSoft,


How to do upload of large sized video file to server ? while uploading user presses “Homebutton” How long will execute?

0 Answers  


What is latest ios version?

0 Answers  






What is an NSOperationQueue and how/would you use it in iOS operating system?

0 Answers   UGC Corporation,


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

0 Answers  


What are all the newly added frameworks iOS 4.3 to iOS 5.0?

0 Answers   CDC,


What is core data stack?

0 Answers  


Explain UIApplication delegate

1 Answers  


How do I exit safe mode on my iphone?

0 Answers  


How do you decide when to use infinite scroll or pagination in ios? : IOS Architect

0 Answers  


Categories