一、横屏、竖屏设置
1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、iOS
- - (NSUInteger) supportedInterfaceOrientations{
- #ifdef __IPHONE_6_0
- // 横屏显示
- // return UIInterfaceOrientationMaskLandscape;
- // 竖屏显示
- return UIInterfaceOrientationMaskPortrait;
- #endif
- }
二、读写sd卡 AndroidManifest.xml文件中,先增加权限:
FILE *fp = fopen("/mnt/sdcard/xxx.xxx", "rb+");
此时就可以了,切记根目录前缀:/mnt/sdcard/ 指代sd卡的根目录
原文http://mobile.51cto.com/abased-405166.htm
本文深入解析了Android和iOS设备的横屏、竖屏设置,以及如何在AndroidManifest.xml文件中进行配置。同时详细介绍了在Android中读写SD卡的步骤,并强调了正确使用根目录前缀的重要性。
1539

被折叠的 条评论
为什么被折叠?



