
unbutton
xpp_xue
这个作者很懒,什么都没留下…
展开
-
button点击设置背景色
1,通过按钮的事件来设置背景色- (void)viewDidLoad { [super viewDidLoad]; UIButton *button1 = [[UIButton alloc] initWithFrame:CGRectMake(50, 200, 100, 50)]; [button1 setTitle:@"button1" forState:UIControlStat转载 2016-09-07 12:20:22 · 1561 阅读 · 0 评论 -
解决多次点击按钮 执行多次方法
- (void)myButtonClicked:(id)sender{ //取消此方法 [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(doSth:) object:sender]; [self performSelector:@selector(doSth:) wit转载 2016-11-08 18:24:19 · 764 阅读 · 1 评论 -
uibutton图标文字排列
https://www.cnblogs.com/oc-bowen/p/5851849.html转载 2017-11-14 14:57:18 · 353 阅读 · 0 评论