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.
精彩评论