A
A
AirNext2014-06-09 09:03:44
PHP
AirNext, 2014-06-09 09:03:44

How to flip the screen? xcode

Using cocos2D the screen of iPhone and iPad is horizontal. How to return it to vertical position?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
heroino, 2014-06-09
@heroino

Do you mean orientation?
There was such a problem, but on the latest versions of the template it seems to have been fixed. Before that, it was decided by such a half-crutch.
go to GameConfig.h and change this:

#if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR
#define GAME_AUTOROTATION kGameAutorotationUIViewController

on this:
#if defined(__ARM_NEON__) || TARGET_IPHONE_SIMULATOR
#define GAME_AUTOROTATION kGameAutorotationCCDirector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question