iphone - Check if an app is installed

前端 未结 2 609
生来不讨喜
生来不讨喜 2020-12-22 06:45

I want to bring the list of what apps are installed in my iPhone.

I hear this code sample is in this website but I can\'t find it.

Code Sample: Check if an a

2条回答
  •  执念已碎
    2020-12-22 07:23

    This is not possible on non-jailbroken iOS devices—the app sandbox prevents it. You can test for some individual applications, if you know the URL schemes they implement (e.g. tel:// for the Phone app), by calling [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"someScheme://blah"]], but if an app doesn’t respond to any URL schemes then you’re not going to be able to determine whether it’s present on the device.

提交回复
热议问题