首页 > 代码库 > iOS--圆角按钮
iOS--圆角按钮
//进入按钮 UIButton *enterMainButton = [[UIButton alloc] initWithFrame:CGRectMake(65, self.PageHeight-120,250 , 45)]; enterMainButton.layer.borderWidth = 1; enterMainButton.layer.cornerRadius = 24; enterMainButton.layer.borderColor = [UIColor colorWithRed:108/255.0 green:122/255.0 blue:149/255.0 alpha:1].CGColor; [enterMainButton setTitle:@"进入应用" forState:UIControlStateNormal]; enterMainButton.titleLabel.font = [UIFont systemFontOfSize: 14.0]; [enterMainButton setTitleColor:[UIColor colorWithRed:108/255.0 green:122/255.0 blue:149/255.0 alpha:1]forState:UIControlStateNormal]; enterMainButton.showsTouchWhenHighlighted = YES; enterMainButton.alpha = 0; [enterMainButton addTarget:self action:@selector(intoButtonClick:) forControlEvents:UIControlEventTouchUpInside]; [UIView animateWithDuration:3.0 animations:^{ enterMainButton.alpha = 1.0; }];
iOS--圆角按钮
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。