views:

51

answers:

1

How can you detect whether Safari has been disabled by parental controls on the iPhone? I know it is possible because the App X3Watch refuses to work until Safari is disabled. As far as I can see there is no api for the parental controls, so what technique can be used for this?

+3  A: 

I haven't tested this, but is OS3.0 and later, you can detect if a URL can be opened by any application on the system using [[UIApplication sharedApplication] canOpenURL:myURL]. I'll betcha it will return NO if Safari is disabled.

dgrijalva
Yes, I tried it and you are right. Thanks!
zorro2b