• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UITextField adjustsFontSizeToFitWidth doesn't work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextField adjustsFontSizeToFitWidth doesn't work?


  • Subject: Re: UITextField adjustsFontSizeToFitWidth doesn't work?
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 29 Oct 2012 08:45:45 -0700

On Tue, 16 Oct 2012 23:14:44 -0700, Laurent Daudelin <email@hidden> said:
>I just realized while doing some testing that all my UITextField won't reduce the font size if there is more text to display than what the frame can show. I programmatically set the regular font size of the textfield to 13, minimumFontSize to 8 and adjustsFontSizeToFitWidth to YES, yet, the textfield simply adds an ellipsis after truncating the last word.
>
>Am I missing something? I did a search and it seems this problem has been around since at least iOS 5 so one would think it would have been fixed in iOS 6. Or am I the problem?

You're probably just misunderstanding this property. It has meaning only if numberOfLines is 1. I'm betting it isn't. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: how to clip inside a path
  • Next by Date: Re: how to clip inside a path
  • Previous by thread: UITextField adjustsFontSizeToFitWidth doesn't work?
  • Next by thread: lambda in C++
  • Index(es):
    • Date
    • Thread