Discussion Forums  >  Images, Documents, File Locations

Replies: 15    Views: 249

DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
09/28/12 11:14 AM (13 years ago)

Buttons cut off in menu screen

My main screen is a button menu. I have selected bottom centered. My size / spacing is Small Device Large Device size - 80 size 100 margin 60 margin 100 Buttons are too low on the page - the bottom half is cut off in simulator - both for iPhone 5.0 and iPad 5.0. I tried putting text at the top but to no avail... Also tried changing "allow scrolling" on / off - no effect. I even tried re-downloading the Xcode project (since it is not clear at all which parts are baked-into the code, and which can be modified ) Any help appreciated...
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/28/12 12:30 PM (13 years ago)
Hi Dave, Try adjusting your margins sizes to something smaller. Both 60 and 100 seem kind of large to me if I remember correctly. Refreshing your simulator/device after making this change in the control panel should do the trick. No re-downloading needed.
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/28/12 12:51 PM (13 years ago)
Tried several variations on size and margin, with no effect
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/28/12 12:53 PM (13 years ago)
I have custom images for the buttons. It asks for "small" and "large" screen images - even though they are the same image. I have been told they are automatically sized - so why ask for two sizes!? Does it have to do with source image size for buttons?
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
09/28/12 01:57 PM (13 years ago)
I always use two sizes, one for iPad and one for iPhone. It will resize them but this makes the app look less pro and more quick fix. See you are new to posting round here so a belated welcome as well! Happy Friday.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/28/12 02:06 PM (13 years ago)
No effect at all? Can you change the Nav Bar title, refresh, and see a change? Just want to check that your app in the sim is connected to the control panel. The small image is for phones and the large image is for tablets. Using specific images for specific devices will result in better looking icons. No stretching. Do you experience the same issue when simulating on a iphone 4.3, etc? Or is it just an issue with 5.0?
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/28/12 04:01 PM (13 years ago)
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
09/29/12 10:48 AM (13 years ago)
what size is the actual image size that you are using for the button? Just wondering if the source image is too big and causing a problem.
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/29/12 10:31 PM (13 years ago)
small 72 x 72, large 114 x 114
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
09/30/12 03:25 AM (13 years ago)
They seem perfect - it won't be image size then.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
09/30/12 11:49 AM (13 years ago)
If you change the alignment to grid, or vertical left, etc., do the images align properly?
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/30/12 01:47 PM (13 years ago)
small 72 x 72, large 114 x 114
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
09/30/12 01:50 PM (13 years ago)
All other configurations appear to work. However once I set bottom horizontal, they get cut off, and subsequently they appear cut off in other settings also (like Grid, Top horizontal, Left, etc.). At some point I get it re-set, then it will appear ok everywhere, until I try Bottom horizontal again.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
10/08/12 11:36 AM (13 years ago)
Hi Dave. So we looked into this and apparently there is an issue with how the layout is determined for your settings. We will be fixing this as we can assuming that changing this doesn't affect the other layouts. In the meantime you can fix this in your project by making a simple change: With your downloaded project open in xcode, expand the "bt_screen_menuButtons" folder and open the "bt_screen_menuButtons.h" file. Scroll down to about line #457 where the "portrait mode" layout is set. You may need to turn on line numbers in "Xcode>Preferences>Text Editing". You'll see 4 values being set in CGRectMake, separated by commas. You'll want to adjust the second value: (deviceHeight - boxHeight - boxHeight) You can do that by subtracting an amount, like: (deviceHeight - boxHeight - boxHeight) - 50, or by just setting a static value, like: 400. So you would get: CGRectMake(0, 400, deviceWidth, (boxHeight + labelHeight)); You'll need to play a bit with this number to get it to look right, but you should be able to get what you want. Let us know how it goes.
 
DaveM
Lost but trying
Profile
Posts: 13
Reg: Jun 25, 2012
Santa Barbara
3,230
like
10/08/12 11:45 AM (13 years ago)
Thanks - That's a bit beyond my ability. For now I just live with it. I've discovered a much bigger problem: in Landscape view, the buttons are at the top of the page. For now my workaround is to change my screen background so the buttons don't overlapp content in either location, but it kinda looks like crap. I assume there is a similar fix for that (manually edit the ...h file) Thank you again for all your work investigating. Some night over a bottle of red, I'll pluck up the courage to fiddle with the xcode...
 
HelperDev
Lost but trying
Profile
Posts: 49
Reg: Nov 16, 2012
New York
3,090
like
01/31/14 09:30 PM (11 years ago)
I am having a similar problem in eclipse for android. Was this issue fixed?
 

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.