1

i'd like to use the CLLocationCoordinate2DIsValid - check, which is available in iOS 4.0 and later.

how can i prevent this from being called on a iOS 3 device (it wil crash...)?

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?

jra
  • 143
  • 4
  • Have you tried implicit os version check? – knuku Sep 25 '10 at 19:23
  • Does this answer your question? [Weak linking on iPhone refuses to work](https://stackoverflow.com/questions/3002833/weak-linking-on-iphone-refuses-to-work) – pkamb Jun 29 '22 at 19:26

1 Answers1

0

Your syntax isn't quite right for the dynamic loader. I asked the same question.

Community
  • 1
  • 1
Jonathan Grynspan
  • 43,286
  • 8
  • 74
  • 104