This discussion is archived
11608 Views 10 Replies Latest reply: Aug 31, 2008 2:40 PM by Sue Boettcher1
Currently Being ModeratedAug 22, 2008 4:51 PM (in response to Sue Boettcher1)From the docs:
"The default value for this property is NO. If you change it to YES, you should also set an appropriate minimum font size by modifying the minimumFontSize property."
Have you tried that?Several, Mac OS X (10.5.2)
Currently Being ModeratedAug 30, 2008 8:42 PM (in response to Sue Boettcher1)I'm wrestling with that one myself.
I ended up using a UIWebView, but I'd sure like to know what's up with the UILabel. One weird thing that happened to me was it appeared that all the attributes of my instance of UILabel shared the same value- which was the font size. Very strange.iMac, Mac OS X (10.5.4), Core 2 duo
Currently Being ModeratedAug 30, 2008 8:50 PM (in response to Sue Boettcher1)I don't understand...
How can you tell a label to have no limit on the text it can have, and at the same time tell it to adjust the font size to fit?
It's never going to adjust the font size, since the number of lines is infinite. The frame for the label that you set in IB has nothing to do with the defined number of lines.
Currently Being ModeratedAug 30, 2008 8:58 PM (in response to H Asseily)I may be misunderstanding what you are saying but I think it is buggy.
Even if I DO set a maximum number of lines it doesn't matter. And it never takes advantage of the maximum I set anyway. It maxes out at whatever is reasonable given the space allowed and the font size. In other words, if the label's box is about half the height of the screen, and I set the maximum lines to 10, it will give me about 8 lines of 17px (guessing) Helvetica, and no more, and the text never shrinks. Whatever doesn't fit in that is truncated.
I am pretty much convinced something is whacko about labels and this particular setting.
Currently Being ModeratedAug 30, 2008 10:01 PM (in response to Sue Boettcher1)In a parallel universe where there was no (device which cannot be named) and no concept of an NDA, there would be no point to ******** for (name an ungodly amount of time) about having to subclass (various other objects which cannot be referred to) and rewrite half the support functions to burn out the bugs to do the basic task of (can't talk about this either, oh for the love of god.)
Sorry for the lack of specificity.
Currently Being ModeratedAug 31, 2008 1:56 PM (in response to Sue Boettcher1)The size of the frame in IB won't expand based on the # of lines you set. The two aren't linked.
Make a box big enough to hold say 10 lines, but specify the max # of lines to be 2.
Then if you write something long enough, it will max out at 2 lines and the font size will shrink accordingly.
Then again, that's just what is "supposed" to happen. What really does happen? I don't know
Currently Being ModeratedAug 31, 2008 2:40 PM (in response to H Asseily)I'm not asking that the size of the box would expand.
I have a fixed box, into which is dynamically stuffed a variable amount of text. Sometimes it's 3 lines; sometimes it's 8 lines.
No matter what max lines settings I put in, what actually happens is that if the box is big enough to hold all the text, all is well. If it's not, number of lines doesn't increase, and the text doesn't shrink. It just gets truncated.
Moral of story, I think: use a different type of object or make certain the text isn't long winded.