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

Difference between nil and Nil.

0 Answers  


What is callback in ios?

0 Answers  


What is a background thread?

0 Answers  


A tableview with while tapping on cell show a popOver. and tapping on it move to another view controller, is it possible if yes? then how?

1 Answers  


How to use reusable cell in uitableview?

0 Answers  


Can you pass same core data objects between different threads and modify?

0 Answers  


Are ios developers in demand?

0 Answers  


What’s the difference between not-running, inactive, active, background and suspended execution states?

0 Answers  


What performance issues can you face when using coredata?

0 Answers  


When can you get ios 13?

0 Answers  


Define 'atomic' keyword?

0 Answers  


Explain @synchronized ,@dynamic

0 Answers  


Categories