[ios] opengl es

Apple document

Book

[iOS] Crashed, GPUImageContext presentBufferForDisplay

Symptom

symptom : Crashed when power button pressed app was running.

스크린샷 2016-12-01 오후 2.22.58.png

Solution

OpenGL ES processingQueue를 사용하고 비활성화 될 때 끄도록 설정함.

//AppDelegate
func applicationWillResignActive(_ application: UIApplication) {
    runSynchronouslyOnVideoProcessingQueue {
        glFinish()
    }
}

References

[ios] Assertion failure with segues

http://stackoverflow.com/questions/35727353/assertion-failure-with-segues

 

현상 : Destination View Controller 에 performSegue할 때마다 오류가 발생함.

해결방법 :

  1. Destination View Controller를 대체할 새로운 Empty Id View Controller를 작성한다.
  2. Destination View Controller 디자인 로직을 옮겨온다.
  3. Destination View Controller를 삭제한다.
  4. 삭제된 Destination View Controller와 동일하게 Segue 환경을 구성한다.
  5. 테스트 : 잘됨.

 

  • symptom : try to perform Segue to “DestinationViewControllerSegue” follow error message was shown “Assertion failure with segues”

 

  • solution :
    • Make new View Controller to replace “Destination View Controller”
    • No Storyboard Id, No Class
    • Migrate UI Code From Old View Controller(“Destination VC”) to new Empty View Controller
    • remove “Destination View Controller” and segue
    • connection source view controller with “new Destination View Controller”
    • fill segue’s id with old segue’s id
    • test
    • work well