4

I'm writing a photo editor demo that user can swipe horizontally or vertically to split the views to many small views they want, then users can drag the borders of each views to re-size the view. The problems is I don't know how to make a photo collage that user can drag the view border to make the size of views change. I think every white border (from the picture below) is a view, so user can drag it but I don't know what should to do then. Can you give me some suggestion?

enter image description here

Tommie C.
  • 12,895
  • 5
  • 82
  • 100
Q.u.a.n.g L.
  • 1,564
  • 1
  • 12
  • 27
  • You could do this a few different ways. You could have it just be an image, and get the size/boundingBox of the image and display a white border around it, Then when the user `saves` convert all the images into one `UIImageView` – LAMBORGHINI Jun 13 '13 at 01:35
  • Thanks CodeBandits, but I think there're some misunderstanding. I just want to know how to drag the white border then the size of image frame change. – Q.u.a.n.g L. Jun 13 '13 at 01:46
  • @QuangLuu Hey you got the solution of the collage ?. Please let me know. I'm on the critical condition so please dear help me. I'm really very thankful to u. – Dharmbir Singh Feb 07 '14 at 05:11
  • @QuangLuu if u done with ur problem could u tell me how i could achieve it – ChenSmile May 19 '16 at 17:11
  • @Imran: Brieftly, the white rectangle is actually a view. I scaled the imageviews affected's size based on the white rectangle position. – Q.u.a.n.g L. May 24 '16 at 07:06
  • @QuangLuu could u upload code in github and share it. It would be a great help – ChenSmile May 24 '16 at 09:14
  • @QuangLuu Can you please Upload this project on github – Khushbu Desai Jun 04 '18 at 12:06

0 Answers0