阅读背景:

如何检查CGPoint是否已初始化?

来源:互联网 

I would like to initially set a CGPoint property to a particular point (middle of screen). Other methods may subsequently wish to change this property. My thoughts were to initialise it if empty in the getter, but I get the message invalid argument type 'struct CGPoint' to unary expression. I also tried using if property == nil or 0 but no joy.I would like to initially set a CGPoint propert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: