我对Objective-C还比较陌生,所以可能会提出一些很业余的问题,敬请谅解。
我正在尝试从CLHeading和CLLocationDirection获取磁头方向。但是我在这行代码中遇到了编译错误:
locationLabel.text = [[[location course] magneticHeading] stringValue];
错误信息如下:
warning: invalid receiver type 'CLLocationDirection'
error: cannot convert to a pointer type
我不太明白我在这里做错了什么,请帮忙!