Minimum Font Size deprecated on ios version 6.0

后端 未结 9 816
逝去的感伤
逝去的感伤 2021-02-02 05:07

I just upgraded to xcode 4.5 with iOS 6.0 and it\'s highlighting a warning on all the UILabels in my XIB files saying \"minimum font size deprecated on ios version 6.0\". Does a

相关标签:
9条回答
  • 2021-02-02 05:30

    For Swift use the following:

    //set the number (ex. 8 to your desired minimum font size)
    myLabel!.minimumScaleFactor = 8/myLabel!.font.pointSize;`
    

    Works like a charm!

    0 讨论(0)
  • 2021-02-02 05:37

    Yes minumumFontSize is deprecated.

    Use following minimumScaleFactor:-

    Obj.minimumScaleFactor= (floatValue);
    
    0 讨论(0)
  • 2021-02-02 05:38

    Use minimumScaleFactor instead... Link

    0 讨论(0)
提交回复
热议问题