摘要: 方法1: [[UITextField appearance] setTintColor:[UIColor blackColor]]; 这种方法将影响所有TextField。 方法2: textField.tintColor = [UIColor redColor]; 如果在InterfaceBuil 阅读全文
posted @ 2015-06-26 17:52 whgt1989 阅读(550) 评论(0) 推荐(0) 编辑
摘要: //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = U 阅读全文
posted @ 2015-06-26 17:38 whgt1989 阅读(339) 评论(1) 推荐(1) 编辑