Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 63

Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
04/13/13 02:20 PM (12 years ago)

Xib menu background size

I've managed to create the menu as I wanted but there I face a problem with the iphone 4/4s size and iphone 5 size…How can I solve this? What can I do to be able for the background and buttons' resize?
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/14/13 04:29 AM (12 years ago)
plz can anyone help? I'm desperate out here…When I put an image as the background it only shows correctly either for iphone 4/4s or iphone 5…The background cannot be resized automatically….any suggestions?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/14/13 10:06 AM (12 years ago)
is it your own plugin,if you've built it in interface builder go to the panel and set it to scale to fill or aspect fill. For the buttons to resize you need to play with the size inspector on each of the buttons to find the best fit.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/14/13 10:11 AM (12 years ago)
Georgios, Just getting back from a week in Honduras so a little distracted at the moment. As far as your question with background images I can't tell you exactly since I usually try to avoid this problem. In my apps I usually use a background color and no images. What I have done on occasion is use a single background image which is the size of the iPhone 4 screen and set the view mode to "top" ensuring the image will stay up. That looks great for iPhone 4. Then to accommodate the larger iPhone 5 screen I usually add either another image or color at the bottom. If you want to use just one background image you'll have top lay around with the view modes. Try "scale to fill", "center", etc. You can't use autolayout since that requires iOS 6.0. Hope that helps.
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
04/14/13 11:14 AM (12 years ago)
I found the solution…I went to the size inspector and played with the autosizing…. Thanks anyway for your help @mutzy…. thanks for the great plugin!!! you saved me...
 

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.