tags:

views:

35

answers:

2

hi i am new to iphone. what i need is i have to display only one image in one case, two images in another case like wise and for that i am using a imageview with iboutlet. how can i dispay multiple images in single imageview. pls help me post some code. thank u .

A: 

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.

tob
A: 

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)

Regards

Meir Assayag

Meir Assayag