Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 99

Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
12/08/13 01:36 PM (11 years ago)

Menu With Image Troubleshooting

Hi everyone (and Susan especially), I'm hoping you can help me out troubleshooting my app with Menu With Image. For some reason it's using an old version of the plugin and I can't get it to refresh. I assume it's using an old version, because my app won't do clear background on the rows, still has the row description spacing issues, and won't load local thumbnails, just like the previous bt 2.19 version. Here is what I have tried, not in any particular order, and I'm on self hosting: 1) Update plugins on my CP 2) Manually removed menu with image plugin from CP and downloaded and FTP'd up the newest 2.7 version 3) Removed Menu with image plugin from my project and added manually downloaded version from "source-ios-3.0" folder 4) Rebuilt and downloaded my project again (using 3.0 core option of course) 5) Cleaned an rebuilt the project many times 6) Reset all content in simulator (but same results on device) 7) Verified in my CP and the plugin says version 2.7 8) Double checked config.txt and update.txt in the plugin folder to ensure it is 2.7 9) Deleted all snapshots of my project in Xcode 10) Installed a fresh version of the BT 3.0 core yesterday, as opposed to the one I had from a few weeks ago 11) Double checked all of my settings in the screens I am testing with, row color does in fact say "clear", file name for thumbnail is correct, etc I have NOT yet deleted the screen and recreated it, as I have several hundred MWI screens that I would have to do, and I don't think this would do it anyways... for some reason, my project thinks I have an old version of the plugin. Is there anything in the plugin files themselves that are used in Xcode that would indicate what version Xcode thinks it's using? (as opposed to what my CP thinks it's using). I'm out of ideas. Does anyone know what would cause this? Thanks again!
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
12/09/13 01:13 AM (11 years ago)
Im using BT control panel. The row image does not show when I run my iOS app. Only getting a spinning wheel. When using the row description function the first letter is chopped in half.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/09/13 01:15 AM (11 years ago)
Yeah, same symptoms. This happened with 2.5 and below, but it was fixed in 2.6 and 2.7 versions of the plugin... but for some reason, my project doesn't reflect the fixed changes, even after all the steps above. Tyroner, what version of the plugin does you CP say you have?
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
12/09/13 01:34 AM (11 years ago)
It says 2.7
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/09/13 01:36 AM (11 years ago)
Hmmm... same here. I think we'll have to wait for Susan to chime in. If I remember correctly, it was working properly yesterday with 2.6, but I could be mistaken. I was thinking my project and/or CP was caching an old version of the plugin or something, but maybe the 2.7 version uploaded today was a wrong file or something???
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
12/09/13 12:43 PM (11 years ago)
I have uploaded a fix to this, but there seems to be another problem in that when a developer uploads a new iOS files, they don't seem to replace the old ones. Jim King and I reported this problem to David Book a couple of days ago. If you delete the method called, showImage (see line 399 of WB_cell_menuList, and replace it with these two methods then it should work. - (void)showImage { @synchronized(self) { if ([[NSThread currentThread] isCancelled]) return; [thread cancel]; // Cell! Stop what you were doing! thread = nil; if ([theMenuItemData image]) { // If the image has already been downloaded. //set the image [self performSelectorOnMainThread:@selector(setImageFromThread:) withObject:theMenuItemData.image waitUntilDone:NO]; //hide loading spinner... //[imageLoadingView performSelectorOnMainThread:@selector(stopAnimating) withObject:nil waitUntilDone:NO]; } else { // We need to download the image, get it in a seperate thread! thread = [[NSThread alloc] initWithTarget:self selector:@selector(downloadImage) object:nil]; [thread start]; } } } - (void)downloadImage { if (![[NSThread currentThread] isCancelled]) { [theMenuItemData downloadImage]; @synchronized(self) { if (![[NSThread currentThread] isCancelled]) { //set the image [self performSelectorOnMainThread:@selector(setImageFromThread:) withObject:theMenuItemData.image waitUntilDone:NO]; } } } }
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/09/13 01:20 PM (11 years ago)
Awesome, thanks for the fix! :) At least I know I'm not going crazy now, haha. That won't address the clear rows or spacing though will it?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
12/09/13 01:54 PM (11 years ago)
That is right. Another problem I fixed along the way is the spacing for the description text. I don't know what the clear rows problem is though. I need to figure it out again and I will post it in a bit.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
12/09/13 01:58 PM (11 years ago)
I believe this is the fix, was just making sure it wasn't something that I was doing wrong that ws causing my plugin version being cached or something. Here is what I used in the past to manually fix the clear rows... Just trying to avoid as much manual xcode editing as possible, so I don't have to make edits everytime I download my code. I'm gonna have to experiment with redownloading my code and only copying over the files that I know have changed in the package, as I've got too many manual fixe's going, and just keep a running "to-do" list in a text document, haha. Here is what I use to fix the clear rows: File: BT_Plugins > Menu_With_Image > WB_screen_menuImage.m JUST BEFORE THIS: -------------- return cell; ADD THIS: -------------- [cell setBackgroundColor:[UIColor clearColor]];
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
12/09/13 05:41 PM (11 years ago)
Here is the fix to the spacing problem. Replace line 117 with this code. It just moves around the description line so that the text isn't covered up. [descriptionLabel setContentInset:UIEdgeInsetsMake(-8,-4,0,0)]; I will put the background color fix in as well.
 

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.