How do I create delegates in Objective-C?

后端 未结 19 2523
一整个雨季
一整个雨季 2020-11-21 04:48

I know how delegates work, and I know how I can use them.

But how do I create them?

19条回答
  •  遥遥无期
    2020-11-21 05:23

    Please! check below simple step by step tutorial to understand how Delegates works in iOS.

    Delegate in iOS

    I have created two ViewControllers (for sending data from one to another)

    1. FirstViewController implement delegate (which provides data).
    2. SecondViewController declare the delegate (which will receive data).

提交回复
热议问题