Как получить доступ к вспышке камеры в 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];
}

}

Я уже читал UIImage. страница здесь: http://bit.ly/cdAhhB , но я не нашел ответа. Кто-нибудь может мне помочь?

Спасибо

6
задан Fattie 28 February 2014 в 19:27
поделиться