一. 修改UITextField的placeholder的字体颜色
目前有两种方式可以实现
//第一种
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"userName"
attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
//第二种
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
二. 修改statusBar的颜色
1.在info.plist里面添加View controller-based status bar appearance 并设为 NO;
2.设置statusBarStyle 为 Transparent black style (alpha of 0.5)