iOS: How to display multiple images dynamiclly in imageview?

Hi I am new to iPhone.

What I need is, have to display only one image in one case, two images in another case like wise and for that I am using a UIImageview with IBOutlet.

How can I display multiple images in single imageview?

Please help me post some code.

Thank you.

Answers


An UIImageView can only display one image at a time. You will either have to use several UIImageViews or compose your images into one file before displaying it.


I think you should subviews ot type UIImageView to your main UIImageView.

The "hard" task will be to compute the boundaries of each subview, according to the prefered layout. Use the image property of UIImageView to set the image for each subview (don't worry about resizing, UIImageView will do the work for you)


Need Your Help

Delphi - FMX Form BUG?

delphi firemonkey delphi-xe8

I have usual code to show modal form. But sometimes happens strange bug captured on picture below. (about once per 10 attempt to show that form) It happens only with custom FireMonkey style "Diamond.

how to insert a hashMap into excel to draw a graph

java excel graph hashmap

I have a hashMap in java in terms of some keys which each key is indicating a flow. Then each value showing statics about each packet belongs to that flow.