How to call method from one class in another (iOS)

后端 未结 3 1118
闹比i
闹比i 2020-12-01 05:51

This a very basic question but I\'ve searched all over and been unable to find an answer that explains well enough for me to get my head around it.

What I want to do

3条回答
  •  误落风尘
    2020-12-01 06:28

    You have to use the concept of delegation.

    https://developer.apple.com/library/ios/#documentation/General/Conceptual/CocoaEncyclopedia/DelegatesandDataSources/DelegatesandDataSources.html

提交回复
热议问题