如何获取 iPhone 中所有已安装应用程序的列表(越狱)。我想从应用商店获取已安装应用的完整列表?
问问题
1278 次
1 回答
1
您无法从 Appstore 获取您设备的安装应用列表,但您可以从您的设备获取您的安装应用列表。我只是谷歌它并得到了最佳答案
获取 iphone Objective-c 上已安装应用程序的列表
你可以得到它: -
-(void)appInstalledList
{
BOOL isDir = NO;
NSDictionary *cacheDienter;
NSDictionary *user;
static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";
NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];
NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];
if ([[NSFileManager defaultManager] fileExistsAtPath: path isDirectory: &isDir] && !isDir) // Ensure that file exists
{
cacheDienter = [NSDictionary dictionaryWithContentsOfFile: path];
user = [cacheDienter objectForKey: @"System"];
NSLog(@"%@",user);
// Then all the user (App Store /var/mobile/Applications) apps
}
}
于 2013-03-05T11:00:20.677 回答