J'ai le code suivant:UIImagePickerController problèmes iPad
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];
Mais ce ne détruit que la self.view
et ne montre rien du tout. Quand je mets le inView: à [self.view window]
le sélecteur au moins apparaît. Mais il supprime toujours le self.view. Que dois-je faire pour que la vue ne disparaisse pas?
Thx, je devais avoir été aveugle! – V1ru8