2
我有一個功能,在iOS 8.4.1下工作得很好。手勢位置+ CGImage - 與iPad(Xcode 7)失去聯繫
它現在崩潰的應用程序&有時iPad重新啓動時,我測試此功能。
func panToAdjustContrast(gesture: UITapGestureRecognizer){
let location = gesture.locationInView(self.imageInEditorView)
let y = location.y
self.colorFilter!.setValue(1 - y, forKey: "inputContrast")
if self.imageInEditorView.image != nil {
self.imageInEditorView.image = UIImage(CGImage: self.context.createCGImage(colorFilter!.outputImage!, fromRect: self.extent))
self.colorFilter!.setDefaults()
}
}
有沒有其他人遇到過這個問題?
- 復位contentAndSettings iPad的&設置爲新的iPad。
- 已清理,建成&運行該項目。
- 通過XCode停止應用程序。
- 斷開了USB電纜
- 冉應用&仍然崩潰的應用程序
感謝您的建議。我在運行時看不到任何可能爲零的東西。它在iPad2模擬器上運行得非常好。 –
2015-09-20 10:23:03.949 iTX [257:7545]通訊錯誤: {count = 1,contents = \t「XPCErrorDescription」=> {length = 22,內容=「連接中斷」} –
但我無法弄清楚:)只要我平移屏幕,我有1.2 + GB其他進程填充 –