【问题标题】:how can I add a background image in the image view and the image I want it to show over the background image ios?如何在图像视图中添加背景图像以及我希望它显示在背景图像 ios 上的图像?
【发布时间】:2017-06-29 11:32:45
【问题描述】:

我想在图像视图的背景中放置一个补丁,然后将图像放在上面。我怎样才能做到这一点。我附上一张图片以便更好地理解 请帮忙做这件事。

【问题讨论】:

  • @fahimParkar 如何编辑它以使图像可见?
  • 只需添加! [] 之前 -- ![IMAGE][1] 也可以有 ![IMAGE][https://i.stack.imgur.com/qzKzA.jpg]
  • 我的回答解决了你的问题吗?如果是,请接受答案。
  • 不,它没有..
  • 您到底在寻找什么?你能解释更多吗?

标签: ios objective-c uiimageview


【解决方案1】:

我希望您使用 SDWebImage 来缓存图像。

为了显示用户配置文件,将其用作 UIButton 并遵循以下代码。

[userPhoto sd_setImageWithURL:[NSURL URLWithString:
     [[userArray objectAtIndex:indexPath.row] valueForKey:@"Photo"]] 
     forState:UIControlStateNormal 
     placeholderImage:[self adjustImageByLang:@"player_photo.png"]
];

player_photo.png 是您的补丁图像。

你已经完成了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-09
    • 2017-03-10
    • 2013-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-29
    相关资源
    最近更新 更多