1

如何获取 iPhone 设备上所有已安装应用程序的详细信息,以及在后台运行的所有应用程序的详细信息?提前致谢。

4

1 回答 1

3

是的,我们可以获得已安装应用程序的列表。

NSDictionary *cacheDict;

NSDictionary *user;

static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";

NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];

NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];

cacheDict = [NSDictionary dictionaryWithContentsOfFile: path];

user = [cacheDict objectForKey: @"User"];

用户 Dict 将为我们提供有关已安装应用程序的所有信息。

于 2013-10-23T11:42:03.757 回答