美文网首页iOS开发点滴iOS 开发
iOS 中 textField 的placeholder 占位符

iOS 中 textField 的placeholder 占位符

作者: 小蜜蜂Bee | 来源:发表于2016-08-01 17:32 被阅读201次

    今天想把 button 中默认提示的文字和textField 占位符文字的颜色一样,可是使用数码测色计都不方便测试出来,后面一看原来 textfield 中有一个lightTextColor 的颜色,所以直接这样一行代码就解决了,代码如下:

    self.accessoryBtn.titleLabel.tintColor= [UIColor lightTextColor];

    相关文章

      网友评论

        本文标题:iOS 中 textField 的placeholder 占位符

        本文链接:https://www.haomeiwen.com/subject/dizxsttx.html