也许我的问题等于:
Force Touch animation freezes if gently touched
App is freezing in 'peek and pop' implementation in iPhone 6s
1)没有“bug”的力量接触:
创建OpenCV Error: Assertion failed (src1Size.width == src2Size.height) in gemm, file /Users/myuser/opencv-2.4.12/modules/gpu/src/arithm.cpp, line 109
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/myuser/opencv-2.4.12/modules/gpu/src/arithm.cpp:109: error: (-215) src1Size.width == src2Size.height in function gemm
图层以预览我的View Controller。它运作得很好。
2)有“虫子”的力量:
当我轻轻点击按钮时,会创建UITransitionView
图层,但其透明(没有内容),此时我无法与我的应用互动(因为顶层是“空”)。
更新
代码:
UITransitionView
HomeViewController
在extension HomeViewController: UIViewControllerPreviewingDelegate {
func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? {
if #available(iOS 9.0, *) {
previewingContext.sourceRect = balanceButton!.bounds
}
let balanceViewController = UIStoryboard.balanceViewController()
balanceViewController.delegate = self
balanceViewController.account = account
balanceViewController.preferredContentSize = CGSize(width: 0.0, height: 118)
navigationController?.preferredContentSize = CGSize(width: 0.0, height: 118)
return balanceViewController
}
func previewingContext(previewingContext: UIViewControllerPreviewing, commitViewController viewControllerToCommit: UIViewController) {
let balanceViewController = viewControllerToCommit as! BalanceViewController
balanceViewController.shouldPresentCompleteMode = true
navigationController?.pushViewController(balanceViewController, animated: true)
}
}
:
BalanceViewController
更新2:
当我切换到另一个应用程序并切换回我的应用程序时...我的设备会振动并查看,但会再次冻结。
任何人都可以帮助我?
答案 0 :(得分:0)