[英]Sending 'CLLocationCoordinate2D' to parameter of incomparable type 'CLLocationCoordinate2D *'
When compiling, I'm getting the following error when trying to return coordinates to the class' delegate method. 编译时,尝试将坐标返回给类的委托方法时出现以下错误。
Sending 'CLLocationCoordinate2D' to parameter of incomparable type 'CLLocationCoordinate2D *' 将“ CLLocationCoordinate2D”发送到不可比类型“ CLLocationCoordinate2D *”的参数
I understand it must be to do with pointers, but I'm not too sure about how to resolve it. 我知道这一定与指针有关,但是我不太确定如何解决它。
Just take the address and return that: 只需输入地址并返回:
CLLocationCoordinate2D thing;
[delegate methodcall:&thing];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.