qiankanglai / ImagePicker

ImagePicker utility for cocos2d-x v3

Home Page:http://qiankanglai.me/project/2014/04/14/cocos2dx-ImagePicker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPhone 5S Error

sgoe opened this issue · comments

Hi it's me again,

i got a strange error with iOS 7 and an iPhone 5 / 5s

"Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates."

"*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'"

Any ideas where this come from?

Greets,
Stephan

Hi sgoe,

I've googled around and found some solutions which look reasonable:
http://stackoverflow.com/questions/12540597/supported-orientations-has-no-common-orientation-with-the-application-and-shoul
http://stackoverflow.com/questions/12522491/crash-on-presenting-uiimagepickercontroller-under-ios-6-0

However, I've tested these and found that only adding portrait in Device Orientation works for me(iphone simulation, iOS 8.0)
qq20140813-1

I do not have enough devices here with me and I'm sorry for not being able to provide more tests.