我想知道如何使用UIImagePickerController打開iPhone 4上的相機閃光燈。如何訪問UIImagePickerController上的相機閃光燈?
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerCameraDeviceFront] == YES)
{
/// What code here ///
}
else
{
NoFlash = [[UIAlertView alloc] initWithTitle:@"Uh-Oh"
message:@"Your device doesn't have a flash camera"
delegate:nil
cancelButtonTitle:@"mhmm, OK"
otherButtonTitles:nil];
NoFlash.delegate = self;
[NoFlash show];
[NoFlash release];
}
}
我已經在這裏讀的UIImagePickerController類參考網頁:http://bit.ly/cdAhhB但我沒有找到答案。有人可以幫幫我嗎?
謝謝
這有什麼好做的Xcode。我要重播這個。 – 2010-11-20 18:25:07