标签:ica blog from logs class name color sap bsp
获取手机已安装应用的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
标签:ica blog from logs class name color sap bsp
原文地址:http://www.cnblogs.com/GJ-ios/p/7090684.html