IOS成长之路
harnican
没写出想要的代码,就不要去睡觉
展开
-
ios成长之路 Navigation的统一布局
项目中都会有自己风格的返回键,重写方法可以不用每个页面都去写一次// 统一设置标题颜色 +(void)initialize{ [[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:UITextAttributeTextCol原创 2017-07-22 17:03:55 · 386 阅读 · 0 评论 -
placeholder设置字体大小与颜色
很简单就能实现 [textField setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"]; [textField setValue:[UIFont boldSystemFontOfSize:13] forKeyPath:@"_placeholderLabel.font"];原创 2017-08-09 18:02:17 · 1061 阅读 · 0 评论