What is delegate in ios with example?



What is delegate in ios with example?..

Answer / Shri Chandra Kushwaha

A delegate in iOS is an object that is responsible for handling specific events or tasks. It conforms to a protocol and adopts its methods to respond to those events. For example, in a UITableView, the data source (UITableViewDataSource) and delegate (UITableViewDelegate) are used to manage table data and handle table-related actions like selection or editing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is difference between performblock: and performblockandwait:?

1 Answers  


What is the significance of autorelease?

1 Answers  


What is weak in ios?

1 Answers  


Explain what is iphone reference library?

1 Answers  


What is nsmanagedobjectcontext? What are the different concurrency types? Explain each type.

1 Answers  


What is auto-layout?

1 Answers  


Can we adjust the size of photos uploaded from the app?

1 Answers  


What is ios viewdidload?

1 Answers  


How would you create your own custom view?

1 Answers  


What is view object in iOS operating system?

1 Answers   B-Ways TecnoSoft,


Explain parent-child context setup. What are the advantages?

1 Answers  


Explain how to hide images in ios?

1 Answers  


Categories