3D Touch会冻结我的APP

时间:2016-03-21 20:15:42

标签: ios iphone 3dtouch

也许我的问题等于:

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。它运作得很好。

enter image description here

2)有“虫子”的力量: 当我轻轻点击按钮时,会创建UITransitionView图层,但其透明(没有内容),此时我无法与我的应用互动(因为顶层是“空”)。

enter image description here

更新

代码:

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:

当我切换到另一个应用程序并切换回我的应用程序时...我的设备会振动并查看,但会再次冻结。

任何人都可以帮助我?

1 个答案:

答案 0 :(得分:0)

问题已解决

我找到了解决方案。问题是“多余的”Peek和Pop注册。我正在注册:

1)在viewDidLoad()

上致电wget --auth-no-challenge --http-user=auth_user --http-password=auth_pass --save-cookies cookies.txt --keep-session-cookies --post-data 'user_login=username&pass=password' https://www.helloworld.com/login.php

2)enter image description here

也许他们互相冲突并解决这个问题我已经删除了故事板。