How to conform to a self-made protocol?

后端 未结 7 1776
忘了有多久
忘了有多久 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:32

    He doesn't need to declare the methods to conform to the protocol. He only need to implement them in the .m file.

提交回复
热议问题