摘要: -(void)viewDidLoad { NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; //注册键盘显示通知 [center addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillSho... 阅读全文
posted @ 2018-06-01 22:41 cccliche 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 这里用到的属性layer是CALayer类型,属于UIView,也就是说所有UIView的子类都能使用这个属性。 @property (strong, nonatomic) IBOutlet UIButton *button; //圆形//先设置按钮宽和高相等button.layer.cornerR 阅读全文
posted @ 2018-06-01 21:41 cccliche 阅读(380) 评论(0) 推荐(0) 编辑