Warning while adding and using a new method in external library protocol

后端 未结 3 1478
迷失自我
迷失自我 2021-01-15 09:32

I am using a external library and one of my view controller is registering as delegate for a class in that framework. Now, at one place I want to execute some code on this d

3条回答
  •  温柔的废话
    2021-01-15 09:38

    Write a new protocol that extends the old one, and conform to that, something like:

    @protocol MyNewProtocol 
       - (void) myCoolMethod;
    @end
    

提交回复
热议问题