Accès à la bibliothèque d'images (Swift)

if UIImagePickerController.isSourceTypeAvailable(.PhotoLibrary) { let imagePicker = UIImagePickerController() imagePicker.allowsEditing = false imagePicker.sourceType = .PhotoLibrary // ou .Camera pour accéder à l'appareil photo de l'appareil self.presentViewController(imagePicker, animated: true, completion: nil) }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.