Tengo el siguiente código:problemas UIImagePickerController protectores y
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] initWithRootViewController:self];
imagePicker.delegate = self;
popover = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
[imagePicker release];
[popover presentPopoverFromRect:CGRectMake(100, 100.0, 0.0, 0.0)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];
Pero esto sólo destruye la self.view
y no muestra nada en absoluto. Cuando configuro inView: al [self.view window]
, al menos aparece el selector. Pero todavía elimina el selfview. ¿Qué debo hacer para que la vista no desaparezca?
¡Debo haber estado ciego! – V1ru8