私のテスト デモでは、UITableView をストーリーボードの UIViewController に配置しました。iPhone でデモをテストしたときに、tableView で 1 つのセルを押したところ、このエラーが画像に表示されました
func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController?メソッドでは、私は使用します
guard let indexPath = tableView.indexPathForRowAtPoint(location), cell = tableView.cellForRowAtIndexPath(indexPath) else { return nil }UITableViewで押されたセルを取得します。
何か答えてくれたら本当にありがたいです!