List the Versions of all the applications installed in iOS device programmatically
问题 I need to get the Versions of all the installed applications programmatically for non-jailbroken iOS devices. Is it Possible to achieve this? 回答1: That's possible, please try the below code. Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)]; for (LSApplicationProxy *apps in [workspace performSelector:@selector(allApplications)]) { NSString *localizedName = apps