I'm using this code to get installed apps in ios :
( NSArray * )installedApps{
NSMutableArray * array = [[NSMutableArray alloc] init];
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
// NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
return [workspace performSelector:@selector(allApplications)];
}
that works, but I want to know if it's allowed on Apple store, and its not using a private API