0
votes

my code for calling photo gallery using UIIMAGEPICKERCONTROLLER - Note : this code is under Side menu tabeview controller.

self.present(picker, animated: true, completion: nil)

Error : Presenting view controllers on detached view controllers is discouraged

1

1 Answers

0
votes

Actually the problem was on Requesting Permission for accessing user photo gallery. In iOS 10 we need add Requesting Permission Privacy Settings in info.plist. This in how i implement it https://iosdevcenters.blogspot.com/2016/09/infoplist-privacy-settings-in-ios-10.html

Thanks.