Forward declare a struct in Objective-C

前端 未结 3 2001
猫巷女王i
猫巷女王i 2021-01-01 21:57

I\'m creating a protocol, and one of the parameters to a method I\'m defining is a CMTime*. I would like to forward declare CMTime as opposed to in

3条回答
  •  清酒与你
    2021-01-01 22:44

    Just adding typedef before the struct does the trick for me.

    typedef struct CMTime;
    

提交回复
热议问题