Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 12    Views: 86

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
04/10/15 08:39 AM (9 years ago)

Menu Image Buttons Header problem

Just downloaded Menu Image Buttons and am trying it out in an IOS app with a header image. I can only get the header image to work from inside the project, but not from a URL, I see a space where the image ought to be. I have checked the json and it seems the URL is captured from the control panel OK. If I try the same in Menu Image Rows, it works a treat. Any quick fixes available please?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/10/15 03:50 PM (9 years ago)
What is the url you are using, Alan? I am working on a different problem on the iOS version of Menu Image Buttons right now.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/10/15 05:12 PM (9 years ago)
Nevermind, Alan. I found the problem and uploaded a repair. Here is a replacement for line 153: imageURL = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"imageURL" defaultValue:@""];
 
good
Code is Art
Profile
Posts: 2
Reg: Apr 12, 2015
from sunset
20
like
04/12/15 11:25 AM (9 years ago)
I love the design, but I do not know for programming
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/13/15 03:59 AM (9 years ago)
Thanks for your swift fix Susan, I downloaded the plug-in after your update today and I can report all is good on the remote loading of the header image now. In using it a little more, I just noticed on my iPhone (5) that when rotating, all the buttons shift to the left instead of staying centred. I'm also using menu image rows, which keeps the rows centred very nicely. Cheers, Alan
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/14/15 01:40 AM (9 years ago)
Also, just noticed that not all the background image positions work. I'm using a URL based image. For example, full screen background image is OK, but top left does not show.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/07/15 11:56 AM (9 years ago)
The background options are not likely due to the plugin--all the plugins use the same background options. Will you send me a screenshot of the plugin? The plugin doesn't have logic to center the remaining buttons if there aren't enough to fill up a row.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/07/15 01:05 PM (9 years ago)
On the background, I entered the url, it worked, with the full screen option, I changed the dropdown selection, it didn't show, I changed it back, it worked. Same background with other plugins of yours works fine, which is why I reached that conclusion, but if you have other suggestions, I'm listening. Portrait screen grab here: https://db.tt/hZEU8VZ7 Landscape screengrab here: https://db.tt/RN0mLyVQ Only two buttons and also they are cropped at the bottom. Fingers crossed for an easy fix! Alan
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/07/15 06:59 PM (9 years ago)
No easy fixes, I'm afraid. The plugin lets you set the size of the margin and the number of buttons per row, but then it puts each button in the next available slot. I am not sure what is going on with the background. The plugins all use the same background color and background image code.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/08/15 01:46 AM (9 years ago)
I figured out the background thing - false alarm, my apologies. I repeated the test for each of the options, this time changing the background each time and it was fine. The problem before was I was changing things quickly and I believe app refresh wasn't always picking up up the change.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/08/15 06:57 AM (9 years ago)
On the buttons issue, I've been experimenting with a three button layout with no significant difference. I've noticed: If I stick to portrait and make the labels the same amount of text, all is good. Portrait presentation is quite symmetrical, Landscape is not, even if I start the app in landscape. When selecting text inside the buttons, the size of the text varies across the different buttons. Short descriptions are in a bigger font than small. Is this auto resizing a feature to get the text to fit in the button bounds?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/08/15 07:04 AM (9 years ago)
Yes. If you don't like it, it is something fairly easy to change. But it is better than the alternatives. For your app, why don't you use 1 button per row? Then on landscape, you will have 2 buttons per row. You can use transparency keep the buttons small.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/08/15 08:46 AM (9 years ago)
I hadn't thought of one button per row, I'll give that some thought. I'm presenting a couple of options to the person I'm doing this for next week - wish me luck!
 

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.