Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 50

AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
01/11/14 06:57 PM (11 years ago)

Design Menu or any List Menu

I love the list menus with the headers cause they have a native feel to them ,but recently i have had problem displaying text with them cause you can only have one line of text. I would like to be able to have 3-5 lines of text for each list, but whenever i try to do this it just cuts the text off at the first line? Is there any way around this? Thanks, Jack
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/11/14 07:07 PM (11 years ago)
You'd end up having to Modify the plugin in a couple of different ways… 1) Reduce the size of the font. 2) Increase the number of lines in the text box. Both of these are easily modified if the plugin uses a xib file. If not, you'll need to look at the code for those areas, and modify them accordingly. Not as easy as a xib, but not a deal breaker, either. Here are a couple of different approaches: http://stackoverflow.com/questions/8796862/xcode-uilabel-auto-size-label-to-fit-text http://stackoverflow.com/questions/9908334/uilabel-not-autoshrinking-text-to-fit-label-size http://stackoverflow.com/questions/4094753/how-to-adjust-and-make-the-width-of-uilabel-fit-to-the-text-size Cheers! -- Smug
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
01/12/14 02:54 AM (11 years ago)
The Design Menu does have a "Title Number of Lines" field in the control panel. I don't have any experience using it myself, but it sounds like it's just what you're looking for
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.