【问题标题】:how to set image view color as textfield background color如何将图像视图颜色设置为文本字段背景颜色
【发布时间】:2017-09-26 07:19:53
【问题描述】:

在我的主页中,我向视图添加了一个图像,并在图像视图上添加了文本字段。我想将图像颜色显示为文本字段背景色

【问题讨论】:

  • 设置文本字段的背景颜色以清除情节提要中的颜色。

标签: ios objective-c uitextfield


【解决方案1】:

只要打电话:

textField.backgroundColor = [UIColor clearColor];

【讨论】:

    【解决方案2】:

    在情节提要中设置文本字段背景颜色的 ClearColor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-28
      • 1970-01-01
      • 2022-11-30
      • 2011-01-11
      • 1970-01-01
      • 2011-11-07
      • 2017-09-11
      • 1970-01-01
      相关资源
      最近更新 更多