UITextField minimum fontsize

后端 未结 2 2043
無奈伤痛
無奈伤痛 2020-12-11 01:39

I\'m using the property minimumFontSize

textField.font = [UIFont boldSystemFontOfSize:17];
textField.textColor = [UIColor darkGrayColor];
textFi         


        
2条回答
  •  猫巷女王i
    2020-12-11 01:47

    The font will get truncated until the minimum font size. To experiment with this, drag a UILabel in Interface Builder, set the properties in there and change the width of the UILabel to see the effect.

提交回复
热议问题