0

My app has a cover photo feature and I have no idea on how to do it after taking a picture/upload from photo library.

How do I allow user to pick a portion of their photo to be their cover photo(example from the screenshot below)?

[Example from the Twitter app[1]

Happiehappie
  • 1,084
  • 2
  • 13
  • 26
  • have you seen this question http://stackoverflow.com/questions/21011671/crop-image-to-a-square-according-to-the-size-of-a-uiview-cgrect? – NSNoob Nov 30 '15 at 07:06
  • Yes but I'm still unsure how to have a box to drag and crop that portion out only – Happiehappie Nov 30 '15 at 07:12
  • Off the top of my head, you can take a photo then present it in a VC like this and then use gestures to drag the box around while performing the action on choose to crop the image within those bounds. I am sure there must be some thirdparty resource for this. Like this https://github.com/heitorfr/ios-image-editor . You can translate it to swift I assume – NSNoob Nov 30 '15 at 07:15

0 Answers0