How to conform to a self-made protocol?

后端 未结 7 1757
忘了有多久
忘了有多久 2021-02-10 16:33

I have a class with an delegate property. Anyone who wants to be a delegate must conform to a protocol. I defined everything like this:

#import 

        
7条回答
  •  滥情空心
    2021-02-10 17:30

    Also see Apple's Communicating with Objects, which discusses delegates, protocols, and selectors.

提交回复
热议问题