1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、iOS
复制
- (NSUInteger) supportedInterfaceOrientations{ #ifdef __IPHONE_6_0 // 横屏显示 // return UIInterfaceOrientationMaskLandscape; // 竖屏显示 return UIInterfaceOrientationMaskPortrait; #endif }
1.
2.
3.
4.
5.
6.
7.
8.
FILE *fp = fopen("/mnt/sdcard/xxx.xxx", "rb+");
此时就可以了,切记根目录前缀:/mnt/sdcard/ 指代sd卡的根目录