3dtouch

作者: 王欣12138 | 来源:发表于2016-07-03 17:19 被阅读13次

```

//3Dtouch返回按的力量

if([touchrespondsToSelector:@selector(force)]) {

NSLog(@"force:%f", touch.force);

}

-(NSArray> *)previewActionItems

{

UIPreviewAction* action1 = [UIPreviewActionactionWithTitle:@"大"style:1handler:^(UIPreviewAction*_Nonnullaction,UIViewController*_NonnullpreviewViewController) {

PViewController*aaaa = [[PViewControlleralloc]init];

[[selftopViewController]presentViewController:aaaaanimated:YEScompletion:nil];

}];

NSArray* actions =@[action1];

return actions;

}

```

相关文章

网友评论

      本文标题:3dtouch

      本文链接:https://www.haomeiwen.com/subject/rbkxjttx.html