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
2010-06-15 09:53:03
Yes, I tried it and you are right. Thanks!
zorro2b
2010-06-19 12:33:16