Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 65

JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
08/28/15 05:19 AM (8 years ago)

Text Align Left in Buttons using Ultimate Screen Creator

I'm saddened and ashamed I can't work this out by myself! I want to left align the text in the buttons on the Ultimate Screen Creator (iOS) plugin (as apposed to centred as they are by default). I could just create a label with the text aligned and use a blank button over the top for the same effect but this is an ugly / inelegant solution. Any pointers gratefully received.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/28/15 06:43 AM (8 years ago)
Hopefully, something along the lines of yourButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; should work. Cheers! -- Smug
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
08/28/15 07:17 AM (8 years ago)
I think I love you! Dropped in at line 198 in CR_ultimatScreenCreator.m So reads: tmpButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; Thank you!
 

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.