Created
November 5, 2014 02:08
-
-
Save zedzhao/7223890f1bdec4638722 to your computer and use it in GitHub Desktop.
Get all apps in the device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <objc/runtime.h> | |
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace"); | |
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)]; | |
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment