Created
September 24, 2015 11:11
-
-
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
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
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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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;
.