Particular shape image on uiimageview

后端 未结 5 1937
栀梦
栀梦 2020-12-28 10:42

Can we set below shape on image with UIImageView.

Any idea!

Thanks

\"enter

5条回答
  •  礼貌的吻别
    2020-12-28 10:49

    It's easy by using

    UIImageView *image=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"balloon_selected_left.png"] ];
        self.maskImage.layer.mask=image.layer;
    

提交回复
热议问题