开发者

Can we add 2 images of different frame size on 1 UIImageView

my requirement is like i have to add 2 images, so for that one can i use single UIImageView or i开发者_运维知识库 have to go for 2 different UIImageViews


You cannot add two images the the UIImageView class. However create a custom UIView with two UIImageView's and add the images to the view.

This way you will have a custom class specific to your current requirement and you can use it across your entire project.


A standard uiImageView only has one UIImage variable.

Either make a custom UIImageView, or use two views.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜