get list of installed applications on iphone objective-c

前端 未结 6 1233
灰色年华
灰色年华 2020-12-05 12:26

I have an application that needs to get the list of installed (other, maybe third party) applications on the device. How can it be done? Or can it be done at all?

6条回答
  •  臣服心动
    2020-12-05 12:49

    You could scan all your apps through apple private framework "MobileInstallationInstall".

    The method is like below:

    NSDictionary *options = [NSDictionary dictionaryWithKeyAndValues:@"ApplicationType",@"Any",nil]
    NSDictionary *apps = MobileInstallationLookup(options);
    

    it can only be used in JB devices.

提交回复
热议问题