开发者社区 问答 正文

关于 IOS 3dtouch 获取不到对应的ndexPath

为什么获取不到对应的indexPath

    - (UIViewController *)previewingContext:(id)context viewControllerForLocation:(CGPoint) point
    {
    NSIndexPath *indexPath = [owntableView indexPathForCell:(StyleTableViewCell* )[context sourceView]];
}

获取不到呀,cell是自定义的

展开
收起
爵霸 2016-03-06 13:36:22 2042 分享 版权
1 条回答
写回答
取消 提交回答
  • 记得 delegate!!!

    2019-07-17 18:54:28
    赞同 展开评论
问答分类:
问答地址: