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

How are non-atomic and atomic properties different?

859


Why don’t we use strong for enum property in objective-c ?

1064


What is categories in iOS?

859


Explain the application lifecycle in ios?

835


Explain how to silent the noisy keyboard?

883


How is retain different from assign?

783


What is cocoa touch in ios?

809


Explain the difference between nil and nil?

889


What is nsmanagedobject?

805


What are ibeacons in ios? : IOS Architect

889


Difference between release and autorelease ?

832


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

851


Explain the usage of struct?

807


What is grand central dispatch ios?

863


What is a model class?

795