Dynamic forwarding: suppress Incomplete Implementation warning

前端 未结 2 1924
夕颜
夕颜 2020-11-28 22:27

I have a class exposing some methods, whose implementation is provided by an inner object.

I\'m using forward invocation to dispatch at runtime the method calls to t

2条回答
  •  萌比男神i
    2020-11-28 23:07

    You can declare the methods in a class category interface:

    @interface MyClass (ForwardedMethods)
    
    - (void)doSomething;
    
    @end
    

    (without an implementation for the category). Then Xcode will not complain about "incomplete implementation" anymore.

提交回复
热议问题