Skip to content

Instantly share code, notes, and snippets.

@ninjaprawn
Last active October 14, 2015 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjaprawn/c821cd499983af1a2818 to your computer and use it in GitHub Desktop.
Save ninjaprawn/c821cd499983af1a2818 to your computer and use it in GitHub Desktop.
3D Touch Menu logos/objc
@interface SBApplicationController
+(id)sharedInstance;
-(id)applicationWithBundleIdentifier:(id)arg1 ;
@end
@interface SBApplication
@end
@interface SBApplicationIcon : NSObject
-(id)initWithApplication:(id)arg1 ;
@end
@interface SBIconView
@end
@interface SBIconViewMap
+(id)homescreenMap;
-(id)mappedIconViewForIcon:(id)arg1 ;
@end
@interface SBIconController
+(id)sharedInstance;
- (void)_revealMenuForIconView:(id)arg1 presentImmediately:(BOOL)arg2;
@end
%new -(void)presentAppShortcutMenu:(NSString*)bundleID {
SBApplication *application = [[%c(SBApplicationController) sharedInstance] applicationWithBundleIdentifier:bundleID];
SBApplicationIcon *applicationIcon = [[%c(SBApplicationIcon) alloc] initWithApplication:application];
SBIconView *iconView = [[%c(SBIconViewMap) homescreenMap] mappedIconViewForIcon:applicationIcon];
[[%c(SBIconController) sharedInstance] _revealMenuForIconView:iconView presentImmediately:true];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment