首页 > 其他 > 详细

改变输入框的placehould的颜色

时间:2016-06-02 13:04:25      阅读:339      评论:0      收藏:0      [点我收藏+]

UIColor *color = [UIColor whiteColor];

    _usernameTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入账号" attributes:@{NSForegroundColorAttributeName: color}];

 

 

 

 

附带找window的跟视图控制器

UIWindow *window = [UIApplication sharedApplication].keyWindow;

    UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:loginVC];

    window.rootViewController = nav;

改变输入框的placehould的颜色

原文:http://www.cnblogs.com/Lovexiaohuzi/p/5552472.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!