一,UITextField文字垂直居中
searchText.contentHorizontalAlignment=UIControlContentHorizontalAlignmentCenter;
二,placeholder偏上的问题
[searchText setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
[searchText setValue:[UIFont systemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];
searchText.font = [UIFont systemFontOfSize:14];