如何硬按 iPhone 中的按钮并取消 3D 触摸?

How to hard press button in iPhone and detact 3D touch?

I have on Unbutton and i want to open detail page on hard press on it.

所以怎么可能让我知道。

#pragma mark - Previewing delegate
- (UIViewController *)previewingContext:(id <UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)location
{
    UIViewController *detailVC = [self.storyboard instantiateViewControllerWithIdentifier:@"detail"];
    detailVC.preferredContentSize = CGSizeMake(0.0, 568.0);
    previewingContext.sourceRect = self.btnDetail.frame;
    return detailVC;
}

- (void)previewingContext:(id <UIViewControllerPreviewing>)previewingContext commitViewController:(UIViewController *)viewControllerToCommit{
    [self showViewController:viewControllerToCommit sender:self];
}