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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is appdelegate?

809


What does 2x resolution mean?

899


What are the different store migration options? When are they used? How do they work? What is mapping model?

735


Please explain what is difference strong and weak reference?

725


What is difference strong and weak reference ? Explain.

839


What is suspended state in ios?

830


What is 'notification'?

802


What does static analyser do?

817


Explain the difference between coredata & sqlite?

796


What are ios apps written in?

802


How you can add frameworks in xcode project?

800


How to send your device id to an iphone developer?

787


What is difference between nsnotification and delegate?

774


What is nsuserdefaults?

834


What is the meaning of 'strong'keyword?

859