J'ai créé un NSAttributedString
de cette manièreNSAttributedText changements de taille de police en fonction de la largeur UILabel
attribute3=[
NSForegroundColorAttributeName: innercircleColor,
NSFontAttributeName:UIFont.init(name: "Bariol", size: 18.0)!]
attriType=NSAttributedString.init(string: type, attributes: attribute3)
lblType.setAttributedText(attriType)
Mais selon ma UILabel
taille, dans iPhone 5s ce texte attribué vient en dehors du UILabel. Comment puis-je faire correspondre la taille de police du texte attribué à la UILabel
largeur
https://stackoverflow.com/questions/21290234/nsattributedstring-ignores-autoshrink-and-numberoflines-for-uilabel-ios-6? – Larme