开发者

Dynamic imageview with text iphone

In my UIView.I need to show dynamic images i have an array size not fixed. i will loop through the array. and i want to show two image ( Both images are known 1.png and 2.png ) and want to show text over that images.

i tried with CGRectmake but need help :(

Please Anyo开发者_如何转开发ne can suggest anything ? any help will be appreciated !


Just place 2 UIImageViews and 2 UILabels into your view, and then set the properties accordingly:

UIImage *image1 = [yourArray objectAtIndex:x];
UIImage *image2 = [yourArray objectAtIndex:y];
yourImageView1.image = image1;
yourImageView2.image = image2;

yourLabel1.text = @"text one";
yourLabel2.text = @"text two";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜