Game Development Reference
In-Depth Information
Figure 3-17 . Kobold2D recognizes the Supported Device Orientations setting in Xcode
If you can't see the device orientation setting, make sure you've selected the iOS target.
After all, almost all Kobold2D projects also include a Mac build target.
In a purely cocos2d app, you have to open AppDelegate.m and locate the
shouldAutorotateToInterfaceOrientation method. Kobold2D users can
also add this method to the AppDelegate class to change the supported orientations
while the app is running. The default implementation allows autorotation to both Land-
scape orientations and is similar to this one, except for the method parameter which I
changed from interfaceOrientation to orientation to make the source
code in the topic more readable:
return UIInterfaceOrientationIsLandscape(orientation);
Search Nedrilad ::

Custom Search