延伸知识
1.学习YYKit框架
2.学习Swift
3.学习LinPhone
UITableViewController
1、不让cell点击 cell.selectionStyle = UITableViewCellSelectionStyleNone;
2、
UITextField
1.文字向下偏移,目测Xib下设置了无边框模式。可以在Xib先设置其它边框模式,再用代码重新设置 textView.borderStyle = UITextBorderStyleNone;
NSString
1.-(BOOL) hasPrefix:(NSString *) astring;检查字符串是否以astring; //判断是否开头
-(BOOL) hasSuffix:(NSString *) astring;检查字符串是否以astring; //判断是否结尾
系统设置
1.禁止侧滑返回上一级:// 关闭返回手势 if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { self.navigationController.interactivePopGestureRecognizer.enabled = NO; }
控件设置
设置圆角、边框
_secondButton.layer.cornerRadius = 8;
_secondButton.layer.masksToBounds =YES;
_secondButton.layer.borderWidth