如果相关,版本为3.1.3。
有一个建议,可能现在可行,但将来呢?
NSString *device = [UIDevice currentDevice].model;
if([device isEqualToString:@"iPhone"])
如果相关,版本为3.1.3。
有一个建议,可能现在可行,但将来呢?
NSString *device = [UIDevice currentDevice].model;
if([device isEqualToString:@"iPhone"])
#define SOURCETYPE UIImagePickerControllerSourceTypeCamera
// does the device have a camera?
if ([UIImagePickerController isSourceTypeAvailable:SOURCETYPE]) {
// if so, does that camera support video?
NSArray *mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:SOURCETYPE];
bool isA3GS = [mediaTypes containsObject:(NSString*)kUTTypeMovie];
}
passing argument 1 of 'containsObject:' from incompatible pointer type
我知道它是CFConstStringRef,但我以前从未使用过...我错过了什么? - Kyle Humfeldbool isA3GS = [mediaTypes containsObject:(NSString *)kUTTypeMovie]
; - Cristian Donoso