2015-09-20 29 views
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() 
    } 
} 

有沒有其他人遇到過這個問題?

  1. 復位contentAndSettings iPad的&設置爲新的iPad。
  2. 已清理,建成&運行該項目。
  3. 通過XCode停止應用程序。
  4. 斷開了USB電纜
  5. 冉應用&仍然崩潰的應用程序
+0

感謝您的建議。我在運行時看不到任何可能爲零的東西。它在iPad2模擬器上運行得非常好。 –

+0

2015-09-20 10:23:03.949 iTX [257:7545]通訊錯誤: {count = 1,contents = \t「XPCErrorDescription」=> {length = 22,內容=「連接中斷」} –

+0

但我無法弄清楚:)只要我平移屏幕,我有1.2 + GB其他進程填充 –

回答

0

這是奇蹟般地在固定的時間升級到iOS9的最新版本後。