Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 onboarding and why is it so important for mobile design? : IOS Architect

0 Answers  


Difference between release and autorelease ?

0 Answers  


Explain the working of manual memory management?

0 Answers  


What json framework is supported by ios (iphone os)?

0 Answers  


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

0 Answers   CDC,


How to send crash report from device?

0 Answers  


Explain interfaces?

0 Answers  


Explain usage of struct?

0 Answers  


What happens when we invoke a method on a nil pointer?

0 Answers  


What is abstract class in ios?

0 Answers  


Can apk files run on ios?

1 Answers  


What does 2x resolution mean?

0 Answers  


Categories