मैं जानना चाहता हूं कि आईआईएम 4 पर UIImagePickerController के साथ कैमरा फ्लैश पर स्विच कैसे करें।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 के साथ कोई संबंध नहीं है। मैं इसे पुनः प्राप्त करने जा रहा हूँ। –