我在用iOS 8.2 SDK打的包没有出现在弹出键盘后出现画面偏移的情况,
但是用iOS 8.3 SDK打包后出现了在iOS 8.3的设备上输入时会出现画面偏移的情况,
但是在iOS 8.0 iOS7.0 版本上都不会出现画面偏移,8.2 8.1没有设备测试,不知道什么情况
同问,等待回答。
http://discuss.cocos2d-x.org/t/cocos2dx2-2-5-on-ios8-cceditbox-make-the-main-view-appear-error/17042/17
在cocos2dx/platform/ios/EAGLView.mm文件
加入
UIInterfaceOrientation getFixedOrientation(UIInterfaceOrientation statusBarOrientation)
{
if ( systemVersion] floatValue] >= 8.0)
{
statusBarOrientation = UIInterfaceOrientationPortrait;
}
return statusBarOrientation;
}
在746行和882行修改为
getFixedOrientation( statusBarOrientation])
EAGLView.h增加
UIInterfaceOrientation getFixedOrientation(UIInterfaceOrientation statusBarOrientation);