开发者

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

开发者 https://www.devze.com 2023-03-20 00:58 出处:网络
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 UIImageViewsYou cannot add two images the the UIImageView c

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

精彩评论

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