Posts

Post not yet marked as solved
4 Replies
788 Views
I'm working with the "Start Developing iOS Apps (Swift) and in the Work with View Controllers I'm having a problem with the "guard let" in the following func. func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { // The info dictionary may contain multiple representations of the image. You want to use the original."guard let" selectedImage = info[UIImagePickerControllerOriginalImage] as? UIImage else { 		fatalError("Expected a dictionary containing an image, but was provided the following: \(info)") } // Set photoImageView to display the selected image. photoImageView.image = selectedImage // Dismiss the picker. dismiss(animated: true, completion: nil) } The error I receive is: "Cannot convert value of type 'UIImagePickerController.InfoKey' to expected argument type 'String'". I think I may have a version issue. Running Xcode 11.5 with this tutorial.
Posted Last updated
.
Post not yet marked as solved
2 Replies
407 Views
I'm new to this programming platform and I'm trying to follow the Landmark tutotial with a lot of issues and fructration. I must be doing something wrong. It's extremely SLOW and ERRATIC. A preview can take up to 10 minutes, end up with a failure and try again, and eventually finished after a few try agains. Any comments? Is it that my Mac mini is to slow?
Posted Last updated
.