xcode - is there any way to get all application installed in user's iphone? -
this question has answer here:
i know little bit sandbox. however, can list of total applications installed in user's iphone.i want done iphone device whether jailbroken or not.
i got list of installed application in iphone. uses private framework it's not jail broken device.
#include <objc/runtime.h> class lsapplicationworkspace_class = objc_getclass("lsapplicationworkspace"); sel selector=nsselectorfromstring(@"defaultworkspace"); nsobject* workspace = [lsapplicationworkspace_class performselector:selector]; sel selectorall = nsselectorfromstring(@"allapplications"); nslog(@"apps: %@", [workspace performselector:selectorall]);
i have tried code , it's workings on ios9.
Comments
Post a Comment