Tengo un UIActionSheet
para iPad que tiene tres opciones:UIStatusBarStyleBlackTranslucent no está disponible en este dispositivo
- cancelar
- cámara
- Fototeca
Cuando toco la "biblioteca de fotos "La opción me da un bloqueo y un mensaje
UIStatusBarStyleBlackTranslucent no está disponible en este dispositivo.
He leído this post, pero no lo resolvió.
¿Alguien me puede ayudar?
actualización:
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0)
{
imgController = [[UIImagePickerController alloc] init];
imgController.allowsEditing = YES;
imgController.sourceType = UIImagePickerControllerSourceTypeCamera;
imgController.delegate=self;
[self presentModalViewController:imgController animated:YES];
}
else if (buttonIndex == 1)
{
imgController = [[UIImagePickerController alloc] init];
imgController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imgController.delegate=self;
[self presentModalViewController:imgController animated:YES];
}
}
consigo accidente en la última línea, es decir [self presentModalViewController:imgController animated:YES];
Lea lo que post? – BoltClock
Lo siento. Perdido. Ahora editado. Por favor, compruebe. – Nitish