i'd like to use the CLLocationCoordinate2DIsValid - check, which is available in iOS 4.0 and later.
我想使用CLLocationCoordinate2DIsValid - check,它在iOS 4.0及更高版本中可用。
how can i prevent this from being called on a iOS 3 device (it wil crash...)?
如何防止在iOS 3设备上调用它(它会崩溃......)?
i tried with:
我尝试过:
if (CLLocationCoordinate2DIsValid != NULL) {
//use the check
} else {
//do a own check
}
why do iOS3 devices try to "use the check" instead of "do a own check"? how would one call the CLLocationCoordinate2DIsValid properly - and only if it's available on the current iOS running?
为什么iOS3设备试图“使用支票”而不是“自己检查”?如何正确调用CLLocationCoordinate2DIsValid - 并且只有当它在当前运行的iOS上可用时?
1 个解决方案
#1
0
Your syntax isn't quite right for the dynamic loader. I asked the same question.
您的语法不适合动态加载器。我问了同样的问题。
#1
0
Your syntax isn't quite right for the dynamic loader. I asked the same question.
您的语法不适合动态加载器。我问了同样的问题。