Como acessar o flash da câmera no UIImagePickerController?
Gostaria de saber como ativar o flash da câmera no iPhone 4 com o 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];
}
}
Eu já li a página da Web UIImagePickerController Class Reference aqui:http://bit.ly/cdAhhB mas não encontrei a resposta. Alguém por favor pode me ajudar?
obrigado