0

I have an app that takes an image and checks if it is an landscape image,

if so, the app asks the user if he wants to present it as a square image or as a full landscape image.

On this view I use the UIImageView contentMode to display the image as a square or as a landscape image (ScaleAspectFill for square and ScaleAspectFit for landscape),

but how can I convert this information to the actual photo?

I want it to be presented in the way the user chose on first view but I can't understand how can I save the user choice into the photo.

Is there something like userInfo for UIImage?

Thank you!

F.SO3
  • 237
  • 1
  • 3
  • 9

1 Answers1

0

No there isn't. You should save the user's choice in a separate variable.

Code
  • 6,041
  • 4
  • 35
  • 75