What is difference between delegate and datasource in ios?



What is difference between delegate and datasource in ios?..

Answer / Apratim Bhaskar

Delegate and DataSource are two separate protocols used in iOS for managing different aspects of a view. The delegate handles specific events or actions that occur within the view, while the data source manages the content displayed by the view. For example, UITableView has both a delegate (UITableViewDelegate) and a data source (UITableViewDataSource).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Introduction to iphone application development?

1 Answers  


what are fetched properties?

1 Answers  


You wish to define your custom view. Which class will be subclassed?

1 Answers  


What is nsobject in ios?

1 Answers  


What is background state in ios?

1 Answers  


What is a category and when is it used?

1 Answers  


 How can you respond to state transitions on your app? 

1 Answers  


What are all the instruments available in Xcode in iOS operating system?

1 Answers   TryTechnicals Pvt Ltd,


What is iphone screen size?

1 Answers  


Enlist frameworks for cocoa?

1 Answers  


Is ios development hard?

1 Answers  


How to export your private key from your keychain in iphone development?

1 Answers  


Categories