实用轮子iOS常见问题程序员

iOS 使用自定义字体

2017-03-07  本文已影响29人  帅番茄
1.png
[UIFont fontWithName:@"Yuppy SC" size:20];
self.gifButton = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/2-40, ScreenHeight/2-40, 80, 80)];
[self.gifButton setTitle:@"制作Gif" forState:UIControlStateNormal];
[self.gifButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
self.gifButton.titleLabel.font = [UIFont fontWithName:@"Yuppy SC" size:20];
self.gifButton.layer.cornerRadius = 40;
self.gifButton.backgroundColor = [UIColor greenColor];
3.png
上一篇下一篇

猜你喜欢

热点阅读