草庐IT

cityLabel

全部标签

ios - 如何制作UILabel Objective c的弯曲文本

我想制作UILabel的弯曲文本。如何实现这个?到目前为止我的标签代码是:UILabel*loveLabel=[[UILabelalloc]init];loveLabel.frame=CGRectMake(20,50,50,50);loveLabel.text=@"Flowers";loveLabel.textAlignment=NSTextAlignmentCenter;loveLabel.layer.cornerRadius=25;loveLabel.layer.masksToBounds=YES;[self.viewaddSubview:loveLabel];