Je ne peux pas obtenir ceci:comment fermer imagePickerController?
comment dans le monde puis-je "arrêter" imagePickerController sur xcode? Ce est le code qui ouvre la caméra, et il fonctionne parfaitement ..
-(IBAction) startcamera {
imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePickerController.allowsEditing = NO;
imagePickerController.showsCameraControls=NO;
imagePickerController.toolbarHidden=YES ;
imagePickerController.wantsFullScreenLayout=YES;
imagePickerController.cameraOverlayView=self.view;
self.imagePickerController.delegate=self;
[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];
}
Ok maintenant, je veux dire fermer imagePickerController en cliquant sur un bouton (ce qui signifie sans choisir une image): comment suis-je censé faire ça? essayées avec:
-(IBAction)closecamera {
[imagePickerController release];
[imagePickerController dismissModalViewControllerAnimated:YES];
}
mais il ne fonctionne pas! Des indices? Merci à l'avance
génial, merci! –