偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Android和iOS中Cocos2dx的橫屏豎屏設(shè)置

移動開發(fā) iOS Android 游戲開發(fā)
本文為大家介紹了Android和iOS中Cocos2dx的橫屏豎屏設(shè)置等內(nèi)容,程序源碼直接分享給大家,希望對51CTO的各位網(wǎng)友有所幫助,如果有什么意見歡迎交流。

一、橫屏、豎屏設(shè)置

1、android

AndroidManifest.xml文件中,

screenOrientation="landscape" 為橫屏,

screenOrientation="portrait"為豎屏

2、iOS

  1. - (NSUInteger) supportedInterfaceOrientations{ 
  2. #ifdef __IPHONE_6_0 
  3.     // 橫屏顯示 
  4.     // return UIInterfaceOrientationMaskLandscape; 
  5.     // 豎屏顯示 
  6.     return UIInterfaceOrientationMaskPortrait; 
  7. #endif 

二、讀寫sd卡 AndroidManifest.xml文件中,先增加權(quán)限:

FILE *fp = fopen("/mnt/sdcard/xxx.xxx", "rb+");

此時就可以了,切記根目錄前綴:/mnt/sdcard/ 指代sd卡的根目錄

責任編輯:閆佳明 來源: apkbus
相關(guān)推薦

2013-07-29 04:24:40

iOS開發(fā)學習ViewControl

2011-06-15 17:45:23

Qt 橫屏 豎屏

2011-05-30 08:42:56

Android

2013-03-26 11:09:16

iOS快速將顯卡中數(shù)據(jù)cocos2dx擴展

2013-05-31 10:09:00

移動開發(fā)游戲引擎游戲開發(fā)

2013-11-11 13:24:21

cocos2dx 2.Android編譯

2012-04-17 13:09:13

Cocos2d-x

2014-12-17 17:16:51

2012-04-17 13:12:00

2012-04-16 15:20:41

cocos2d-x

2012-05-22 14:26:15

XNA 橫豎屏設(shè)置

2013-07-03 17:08:14

iOS 7人機交互UI設(shè)計基礎(chǔ)整合iOS系統(tǒng)

2014-09-24 13:37:11

游戲引擎轉(zhuǎn)型

2014-08-14 10:06:14

Cocos2d-x

2013-09-05 16:29:39

Cocos2d-x

2012-04-17 09:30:45

cocos2d-x創(chuàng)建

2011-12-12 10:40:08

Cocos2d-X游戲開發(fā)開發(fā)環(huán)境

2013-06-17 14:30:56

手游開發(fā)工具CocoStudioCocos2d-x

2012-04-17 10:28:00

Cocos2dwophone

2014-10-28 17:14:40

Cocos 2d-xFacebook
點贊
收藏

51CTO技術(shù)棧公眾號