FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
08/31/13 02:07 AM (10 years ago)

arrranging buttons

Hi guys, its pain in the ass again lol, im trying to put buttons at bottom of this image, can someone help, and tell me what im doing wrong, i can get them to aline on the bottom,top and sides (no good) in grid view they stay at top and when i resize them, they just spread out over the page, i need them to go under top image :)
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 02:11 AM (10 years ago)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/31/13 02:48 AM (10 years ago)
Are you using the Button Menu? If so, you can 'massage' the code to start below the image. I'm guessing the image is a background image? Figure out what the height is (in pixels) and in your BT_screen_menuButtons.m file on or around line 78 you have this line: self.myScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, deviceWidth, deviceHeight)]; Change the first value of CGRectMake to the height of your image. You might also want to make the height to be height - image height. So if the image is 320w x 200h, the instruction would read something like: self.myScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(200, 0, deviceWidth, deviceHeight - 200)]; Of course, if you're not using the button menu, nevermind. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 03:26 AM (10 years ago)
yes i am using the button menu, cheers smug, will test that out :)
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 04:06 AM (10 years ago)
hi smug changed those values in xcode, refrehed the app, but its not moved the buttons, ?
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 04:12 AM (10 years ago)
the image is 340w x 504h change values to 504, still nothing, do i have to save the code or something first
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/31/13 06:10 PM (10 years ago)
hmm.. well, it probably is something simple, but I'm afraid I'll need to hold off snooping for a little bit; got lots of updates to do for my plugins to make them compatible with the new Self Hosted release. I'll take a look when I get some breathing room. In the meantime, play around with it and see what you can come up with. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 11:35 PM (10 years ago)
what i have realised is, nothing changes if you change any of the values, is there something im not doing to update the code, or is there way of manipulating the code prior to launcing in xcode cheers
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
08/31/13 11:57 PM (10 years ago)
sussed it, to bring the buttons down the screen. open the menubuttons.m with text edit before you launch in xcode, scroll down till you find IMPORTANT if the screen uses a transparent nav bar and change the value to however low you want the buttons thanks for pointing me in right place smug, im always bit scared when it comes to changing code , :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/01/13 03:13 AM (10 years ago)
Never be afraid to change code. Unless you don't have a backup. Make a backup or some safe keeping, and have at it. You won't break anything. You'll discover much :) Glad you got it the way you want it; sorry I don't always have time to play with those things. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
09/01/13 04:24 AM (10 years ago)
no probs dude, thanks for your help, you pointed me in the right direction cheers
 

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.