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 difference between shallow copy and deep copy in ios ? : IOS Architect

0 Answers  


What are the sorts of ios binaries you can make utilizing xcode?

0 Answers  


What is App Bundle in iOS operating system?

0 Answers   TryTechnicals Pvt Ltd,


What is nsmanagedobjectcontext? What are the different concurrency types? Explain each type.

0 Answers  


How to generate a protected disk image containing your csr, private key and development certificate in iphone development?

0 Answers  






What is Delegation in iOS?

0 Answers   UGC Corporation,


What is messaging? How does the runtime handle message passing? What is message forwarding?

0 Answers  


What’s the difference between an “app id” and a “bundle id” and what is each used for?

0 Answers  


What is iphone reference library?

0 Answers  


What is callback in ios?

0 Answers  


What is difference between static library and framework?

0 Answers  


What is ios application life cycle?

0 Answers  


Categories