Request for member which is of non-class

前端 未结 2 608
抹茶落季
抹茶落季 2021-01-27 09:46

I\'ve got a C++ class I want to use which has all the code in the header file, rather than the CPP file. I\'m trying to call it from an objective-C file which inherits a UIViewC

2条回答
  •  再見小時候
    2021-01-27 09:55

    I'm not a C++ coder, so this was probably an obvious mistake, but if anyone else comes across a similar problem, I simply changed my code from:

    myObject.method();
    

    to

    myObject->method();
    

提交回复
热议问题