获取手机已安装应用的name,bundleIdentitifer
Posted 梦之魂_JG
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取手机已安装应用的name,bundleIdentitifer相关的知识,希望对你有一定的参考价值。
获取手机已安装应用的name,bundleIdentitifer
Class c =NSClassFromString(@"LSApplicationWorkspace"); id s = [(id)c performSelector:NSSelectorFromString(@"defaultWorkspace")]; NSArray *array = [s performSelector:NSSelectorFromString(@"allInstalledApplications")]; for (id item in array) { NSLog(@"%@",[item performSelector:NSSelectorFromString(@"applicationIdentifier")]); NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleIdentifier")]); // NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleVersion")]); // NSLog(@"%@",[item performSelector:NSSelectorFromString(@"shortVersionString")]); NSLog(@"%@",[item performSelector:NSSelectorFromString(@"itemName")]); }
以上是关于获取手机已安装应用的name,bundleIdentitifer的主要内容,如果未能解决你的问题,请参考以下文章