iOS

iOS Delegates

iOS Delegates

Delegate is nothing more than a way for iOS app objects to communicate with one another. Delegation can be seen as a basic method of connecting items and allowing them to communicate with one another. To put it another way, a delegate lets one object transmit a message to another when an event occurs. Let's look at an example from actual life.

Assume there is a five-counter office. You walk into the office and proceed to counter 1 to fill out some paperwork.

Now your information must go via a mechanism that counters 3 understands but counter 1 does not. So counter 1 will instruct you to wait a while and then transmit your information to counter 3 to finish the procedure. Counter 3 is the delegate in this scenario who handles your events and is referred to by counter 1. After counter 3 has finished processing your data, it sends the message to counter 1 indicating that the process is finished and that you can now proceed.

Top course recommendations for you

    Python Basic Programs
    2 hrs
    Beginner
    42.1K+ Learners
    4.47  (2203)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    25.9K+ Learners
    4.55  (1035)
    Oracle SQL
    4 hrs
    Beginner
    39.8K+ Learners
    4.55  (2480)
    Java Basic Programs
    2 hrs
    Beginner
    34.9K+ Learners
    4.45  (1105)
    Excel Tips and Tricks
    1 hrs
    Beginner
    70.8K+ Learners
    4.55  (5117)
    Factorial Program in Python
    1 hrs
    Beginner
    3.1K+ Learners
    4.56  (97)
    Palindrome Program in C
    1 hrs
    Beginner
    3.3K+ Learners
    4.44  (144)
    PHP for Beginners
    2 hrs
    Beginner
    45.4K+ Learners
    4.52  (3348)
    Inferential Statistics
    1 hrs
    Beginner
    4.1K+ Learners
    4.54  (201)
    Catia Basics
    2 hrs
    Beginner
    18.1K+ Learners
    4.52  (1440)