开发者

GameCenter orientation lock in landscape

开发者 https://www.devze.com 2023-01-24 22:16 出处:网络
When GameCenter is loaded, it is in default portrait view. Is there anyways to lo开发者_如何转开发ad and lock it in landscape view like fruit ninja did?

When GameCenter is loaded, it is in default portrait view.

Is there anyways to lo开发者_如何转开发ad and lock it in landscape view like fruit ninja did?

Thanks..

I'm using it with cocos2d..


Are you using auto-rotation at all? The default I believe is UIViewRotation, which for me doesn't work at all (how did you get it to successfully work in portrait?). If you change to CCDirector rotation, it should work. You can modify this in GameConfig.h


i think method

[self presentModalViewController: leaderboardController animated: YES];

will help u. Hope it help =))

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号