iphone - how to fit a text in UILabel when the size is not proportionally -
According to the title, how do I fit text in UILabel when the width and height are not proportional?
In my application, the width of the label is 100, 500, and the font size of 400. The result of the simulator is that the text is out of the frame and can not be displayed completely on the screen. If I adjust the Any thoughts? I know that the text is not proportionally on the scale, it will look strange, but this is not a problem for me Thank you for your help! If you want to be labeled as big as you want to keep the label, According to the need to keep in large set and can align it as needed. Another option is: , then the font is not greater than 400, which is a requirement.
label.text = new text; CGRTT bound = label.bound; Bounds.isize = [New font size font: label.font]; Label.bounds = Boundary;
Comments
Post a Comment