سؤال

I want to make a collage application like "Pic Collage" https://itunes.apple.com/in/app/pic-collage/id448639966?mt=8

Here I am stuck in a functionality in which we can make collage for predefined rectangular layouts. When we select any layout the pictures on screen automatically fitted in the selected layout design and layouts are dynamic with number of pictures on the screen.

Please suggest how this functionality of creating layouts and fitting images in the layout can be implemented?

Following is link to layout that I am looking for: 1. https://www.dropbox.com/s/ge4mhx9vkyb9s2n/IMG_4914.PNG

هل كانت مفيدة؟

المحلول

If you going to use templates as shown in the application then you can be sure of how many grids would be needed. In that case based on the selected template you could use variations of UITableview and AQGridView. You can customize it according to requirement.

Also you could look into Collection Views.

I would have probably added multiple UIImageViews based on the templates and provide feature for addition of images by handling the touch event.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top