UITextfield代理方法传递
摘要:只要是输入内容的控件,都要先判断一下是不是为空。enum { NameFieldTag = 0, EmailFieldTag, DOBFieldTag, SSNFieldTag};- (void)textFieldDidEndEditing:(UITextField *)te...
阅读全文
posted @
2014-08-06 18:57
benebin
阅读(258)
推荐(0)
UILabel 限定长度时,内容过多,最后不显示"..."
摘要:label.lineBreakMode=NSLineBreakByCharWrapping;
阅读全文
posted @
2014-08-06 13:52
benebin
阅读(556)
推荐(0)
UITableview 使用的小知识点
摘要:1.同一个section中 cell 之间 分割线 到屏幕 的距离 是可调的。 _tableview.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0); 即可2.点击cell进入下一个vc,返回时,cell仍然是选中状态,去掉这种选择状态- (void)ta...
阅读全文
posted @
2014-08-06 12:14
benebin
阅读(97)
推荐(0)
苹果官方-UIViewController Class Reference 翻译
摘要:慢慢更新,最近发现,要想最快的提高ios水平,最便捷的方法就是 直接参考苹果的官方文档-17:26:16
阅读全文
posted @
2014-08-05 17:27
benebin
阅读(172)
推荐(0)
UIButton 颜色设置
摘要:要这样才行 [_nextBtn setTitleColor:kBlackColor forState:UIControlStateNormal];这样不行 _obtainCode.titleLabel.textColor = kBlackColor; _obtainCode.tintColor =...
阅读全文
posted @
2014-08-05 17:12
benebin
阅读(361)
推荐(0)
修改 UITextfield placeholder 颜色
摘要:_password = [[UITextField alloc]init]; _password.font = k18Font; _password.attributedPlaceholder = [[NSAttributedString alloc]initWithString:@" 密码...
阅读全文
posted @
2014-08-05 16:27
benebin
阅读(226)
推荐(0)