Display fraction number in UILabel

前端 未结 5 589
情歌与酒
情歌与酒 2020-12-17 08:20

I am working on the app in which I have to show fraction number on label.

NSMutableAttributedString   * hogan = [[NSMutableAttributedString alloc] initWithSt         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-17 08:50

    Try setting the label's text property to the Unicode of 1/5:

    label.text = [NSString stringWithFormat:@"%C",0x2155];
    

提交回复
热议问题