I have been using Objective-C for a while and pretty much understand most of its functions. However, the concept of delegates eludes me. Can someone please give a brief and easy understanding of what delegates are, how they are used in the iPhone SDK and how I can best use them in my own code?
Thank!
There are several main reasons for using delegates in Objective-C, which are slightly different:
framework. , UITableView , ( , , ). , UITableView , -.
. , , , -, . , , , . , , , ( Objective-C, assign). , , .
. , NSURLConnection , , , .
, , , . , , ( ).
, , UIViewController UITextView, . UIViewController UITextView. , ( , , ..), , , , , , , , .
C.
, :)
, Lynda.com Tutorial: , , . , , , , . , .
, - . . , .
Source: https://habr.com/ru/post/1773464/More articles:How can I add a view from subviews on top of my supervisor? - objective-cFunction request in functions.php? - javascriptA window without borders, such as Corel Draw, starts from powerbuilder - powerbuilderEffective time and memory for allocating memory for a string - cDetect Internet using JavaScript and perform actions - javascriptCan I tell .net Intellisense how to sort fields? - .netBest Practices for Using Data Sources in CFC - coldfusionReference Confusion PHP Array - arraysImproving mmap / munmap performance on MacOS X - performanceJavaScript class memory usage - javascriptAll Articles