Reputation: 1
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
Upvotes: 0
Views: 134
Reputation: 1
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.
Upvotes: 0