zoukankan      html  css  js  c++  java
  • iOS 改变textfield的 placeholder的 颜色

    UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(0, 0, 200, 200)];
    NSString *holderText = @"房贷首付";
    NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc]initWithString:holderText];
    [placeholderaddAttribute:NSForegroundColorAttributeName
                      value:[UIColor redColor]
                      range:NSMakeRange(0, holderText.length)];
    [placeholderaddAttribute:NSFontAttributeName
                      value:[UIFontboldSystemFontOfSize:16]
                      range:NSMakeRange(0, holderText.length)];
    textField.attributedPlaceholder = placeholder;
    [cell.contentViewaddSubview:textField];
  • 相关阅读:
    jquery.md5
    LoginPasswordHelp
    RSA(非对称加密算法、公钥加密算法)
    Swiper 3.4.1
    layer web 弹窗
    操作系统
    查看命令帮助
    软件卸载
    重定向命令
    终端命令格式的组成
  • 原文地址:https://www.cnblogs.com/yecong/p/6114280.html
Copyright © 2011-2022 走看看