摘要: [YourtextField setValue:[UIColor colorWithRed:97.0/255.0 green:1.0/255.0 blue:17.0/255.0 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"]; 阅读全文
posted @ 2014-06-12 09:26 菜鸟程序猿 阅读(148) 评论(0) 推荐(0) 编辑
摘要: if (isIOS7) { mySearchBar=[[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, 44)]; mySearchBar.autocorrectionType = UITextAutocor... 阅读全文
posted @ 2014-06-12 09:10 菜鸟程序猿 阅读(243) 评论(0) 推荐(0) 编辑
摘要: [[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor redColor]]; 阅读全文
posted @ 2014-06-12 09:08 菜鸟程序猿 阅读(381) 评论(0) 推荐(0) 编辑
摘要: UITextField *searchField = [mySearchBar valueForKey:@"_searchField"]; searchField.textColor = [UIColor blueColor]; //You can put any color here. 阅读全文
posted @ 2014-06-12 09:02 菜鸟程序猿 阅读(548) 评论(0) 推荐(0) 编辑
摘要: //iOS7.1[[[[_searchBar.subviews objectAtIndex:0] subviews] objectAtIndex:0] removeFromSuperview];[_searchBar setBackgroundColor:[UIColor colorWithRed:... 阅读全文
posted @ 2014-06-12 08:56 菜鸟程序猿 阅读(261) 评论(0) 推荐(0) 编辑