0 votes
2.8k views
asked in Objective C by (1.4k points)
hi

  i am new to objective  why we need delegate?andalso i need the best samplee code for delegate.

1 Answer

0 votes
answered by (8.2k points)

      Delegation is a design pattern not only used in iOS but many other languages. It enables you to hand values and messages over in your class hierarchy.

sample code for delegate

commented by
Cocoa uses protocols to support interprocess communication through Objective-C messages

Categories

...