【发布时间】:2009-06-25 12:53:29
【问题描述】:
我对 Objective-C 比较陌生,对它还不太了解,所以对于这个可能是一个非常业余的问题,我深表歉意。
我正在尝试从 CLHeading 和 CLLocationDirection 获取磁航向。但是我收到了这行代码的编译错误:
locationLabel.text = [[[location course] magneticHeading] stringValue];
错误是:
warning: invalid receiver type 'CLLocationDirection'
error: cannot convert to a pointer type
我真的不明白我在这里做错了什么。请帮忙!
【问题讨论】:
标签: iphone cllocation