Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MP0w/0022f7d1332519264dfd to your computer and use it in GitHub Desktop.
Save MP0w/0022f7d1332519264dfd to your computer and use it in GitHub Desktop.
Xcode 7's simulator can't simulate 3D Touch, use cycript and this script to test your own app Raw
app = [[SBApplicationController sharedInstance] applicationWithBundleIdentifier:@"com.apple.mobilesafari"]
appIcon = [[SBApplicationIcon alloc] initWithApplication:app]
iconView = [[SBIconView alloc] init];
iconView.icon = appIcon;
iconController = choose(SBIconController)[0]
iconView.delegate = iconController
[iconController _revealMenuForIconView:iconView presentImmediately:1]
@daiweilai
Copy link

The method that is called to present the Quick Actions menu has changed from - (void)_revealMenuForIconView:(id)arg1 presentImmediately:(_Bool)arg2; to -(void)_revealMenuForIconView:(id)iconView;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment