camera - Permission to take photo OR get image from library not shown in iOS9 (Xcode 7beta, Swift2) -


the code below shows example access image lib. no matter call code (view) not see permission dialog phone popping , therefore cannot allow app access either camera or library.

also, privacy settings not show app either. thoughts? i'm going nuts.

       let imgpicker = uiimagepickercontroller()         imgpicker.sourcetype = uiimagepickercontrollersourcetype.photolibrary         imgpicker.modalpresentationstyle = uimodalpresentationstyle.popover         self.presentviewcontroller(imgpicker, animated: true, completion: nil) 

another way tried

            if uiimagepickercontroller.issourcetypeavailable(uiimagepickercontrollersourcetype.camera) {                 let imagepicker:uiimagepickercontroller = self.imagepickercontroller                  imagepicker.allowsediting       =   true                 imagepicker.sourcetype          =   uiimagepickercontrollersourcetype.camera                 imagepicker.cameracapturemode   =   uiimagepickercontrollercameracapturemode.photo                 imagepicker.cameradevice        =   uiimagepickercontrollercameradevice.rear                 imagepicker.showscameracontrols =   true                 imagepicker.navigationbarhidden =   true                 imagepicker.toolbarhidden       =   true                 imagepicker.delegate = self              self.presentviewcontroller(imagepicker, animated: true, completion: nil)             } 

you need set new pair of info.plist values, same string location services in ios8:

just set description string those.

info.plist


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -