Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
- myButton.frame = CGRectMake(0, 0, 100, 100 );
- myButton.backgroundColor = [UIColor greenColor];
- [[myButton layer] setBorderColor:[[UIColor whiteColor] CGColor]];
- [[myButton layer] setBorderWidth:2.3];
- [[myButton layer] setCornerRadius:15];
- [myButton setClipsToBounds: YES];
- UILabel *date = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 50, 50 )];
- date.backgroundColor = [UIColor clearColor];
- date.text = @"15";
- //date.adjustsFontSizeToFitWidth = YES;
- date.font = [UIFont boldSystemFontOfSize:30];
- date.alpha = 0.7;
- [myButton addSubview:date];
Add Comment
Please, Sign In to add comment