No puedo ocultar la animación de apertura del obturador de la cámara del iPhone para mi aplicación. Estoy usando UIImagePickerController para acceder a la cámara iphone y usar mis propios controles de superposición. ¿Hay alguna manera de eliminar la animación del obturador inicial (también conocido como Iris) cuando se inicia la cámara? GraciasOcultar/Mostrar animación de iris/obturador de la cámara del iPhone
[EDIT]
Para aquellos que quieren saber la manera de cambiar la animación de la cámara del iris.
La función siguiente se invoca antes de que comience la animación del iris de la cámara.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
// Here is were I make the camera preview fit the entire screen.
// This might violate the "don't change the view hierarchy"-rule.
// So I am not sure if it is valid for App Store commitment.
// However, the NSLogs are used to
// figure out which subview is the actual Camera Preview which turns out
// to be the PLPreviewView. (uncomment to se the printouts).
// Change it's size to fit the entire screen (and scale it accordingly
// to avoid distorted image
NSLog(@"WillShowViewController called...");
NSLog(@"VC:view:subviews\n %@\n\n", [[viewController view] subviews]);
NSLog(@"VC:view:PLCameraView:subviews\n %@\n\n", [[[[viewController view] subviews] objectAtIndex: 0] subviews]);
NSLog(@"VC:view:PLCameraView:PLPreviewView:subviews\n %@\n\n", [[[[[[viewController view] subviews] objectAtIndex: 0] subviews] objectAtIndex: 0] subviews]);
NSLog(@"VC:view:PLCameraView:PLCropOverLay:subviews\n %@\n\n", [[[[[[viewController view] subviews] objectAtIndex: 0] subviews] objectAtIndex: 1] subviews]);
NSLog(@"VC:view:PLCameraView:UIImageView:subviews\n %@\n\n", [[[[[[viewController view] subviews] objectAtIndex: 0] subviews] objectAtIndex: 2] subviews]);
}
En la función anterior se puede ir a través de cada capa utilizando la sintaxis normal de NSMuatableArray como objectAtIndex
esperanza que esto podría ayudarle.
Saludos,
Ankur
Me gustaría saber la respuesta a esta pregunta también. He estado buscando y no he visto nada. Háganos saber si usted resuelve esto! –
¿Tienes la solución? – Fourj
Sí, encontré la solución jugando con la jerarquía de vistas del UIImagePickerController. – Ankur