I got this error when i try to choose photo from Library on real device only , i added privacy in info.plist
i use this code:
@objc func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])
{
if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {
self.profileImage.image = image
}else{
debugPrint("Something went wrong")
}
dismiss(animated: true, completion: nil)
}
and it never set the image to the imageView
Post
Replies
Boosts
Views
Activity
I have an app that provides videos that i want to prevent leaking by screen recording i just used UIScreen.main.isCaptured and add uiview to top of window it worked but if i closed the app from the background and start recording then i opened the app it doesn't work so how can i prevent this from happening .
Thanks in advance
i created a collection view and after i created the IBoutlet and try to run the app it crashes and gives me ([<UIViewController 0x7fb7f5407990> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key typeCollectionView.') and when i open my story board and check the connection in connection inspector there is no error beside the connection