btn = [[UIButton alloc] init]; NSMutableAttributedString...[作者空间]
- (void)setHomeFooterViewOne { // 一个图片的高度margin20 = 20 像...[作者空间]
iOS开发中手势识别有六种: 轻击手势(TapGestureRecognizer),轻扫手势 (SwipeGest...[作者空间]
View.layer.masksToBounds=YES;// A视图在B视图上超出B视图yes裁剪到超出部分。[作者空间]
imageView.userInteractionEnabled = YES; 图片要支持交互,不然按钮点不动的。[作者空间]
//button 文字左对齐 butT.contentHorizontalAlignment = UIContro...[作者空间]
layer.masksToBounds layer.cornerRadius[作者空间]
UIButton *button = [UIButton alloc] initWithFrame:CGRect(...[作者空间]
layer.cornerRadius =button.width/2 btn.frame = CGRectMake...[作者空间]