My previous message with the full logs is being moderated. This time the error is on "print("photoImageView", photoImageView)" Regarding this viewController, on the same photoImageView outlet, I also access my photo library from the previous viewController without any error. I've been having trouble with accessing the latest photo in the library as the log prints photoImageView as nil.photoImageView nilFatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file
Post
Replies
Boosts
Views
Activity
Sure, here are the logs; (this time the error is on "print("photoImageView", photoImageView)" Regarding this viewController, on the same photoImageView outlet, I also access my photo library from the previous viewController without any error. I've been having trouble with accessing the latest photo in the library as the log prints photoImageView as nil. 2020-03-22 17:34:31.197852+0300 Stitch[60446:1861363] [Warning] Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a table view cell's content view. We're considering the collapse unintentional and using standard height instead. Cell: <Stitch.PhotoPopUpCell: 0x7ff73c89c5a0; baseClass = UITableViewCell; frame = (0 0; 341.667 44); clipsToBounds = YES; autoresize = W; layer = <CALayer: 0x6000029609c0>>photoImageView nilFatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /Users/sedatonurduzova/Desktop/Xcode Projects/iOS Photos Framework/Manipulate Assets to Generate Collages/P02E04 Observe Photo Library Changes to Update UI/end/Stitch/Effect View Controllers/PhotoViewController.swift, line 672020-03-22 17:34:39.737915+0300 Stitch[60446:1861363] Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /Users/sedatonurduzova/Desktop/Xcode Projects/iOS Photos Framework/Manipulate Assets to Generate Collages/P02E04 Observe Photo Library Changes to Update UI/end/Stitch/Effect View Controllers/PhotoViewController.swift, line 67(lldb)
Btw., I set the constraints of "photoImageView" on the storyboard. The "targetSize" constant can be revoked but as far as I see, the error is caused by the photoImageView.
I appreciate your revert Claudia, I set targetSize constant as an optional to solve the error but it didn't work. I ran your proposed code, I got the same error message on line 04 "targetSize". Then, I set a breakpoint on line 04 "targetSize" and after I stepped into it, the error pointed out the "photoImageView" outlet.