Я хотел бы знать, как включить вспышку камеры на 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];
}
}
Я уже читал UIImage. страница здесь: http://bit.ly/cdAhhB , но я не нашел ответа. Кто-нибудь может мне помочь?
Спасибо