chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
12/25/13 04:14 PM (11 years ago)

Favorites plugin, Messages Bar plugin+ Scringo don't play nicely

I have integrated the favorites and message bar plugins which worked liked a charm before I integrated the newest Scringo SDK. Has anyone been able to get the message bar "favorite added" message to show up that also has Scringo installed? The favorites are still added to the list, however when I go to rearrange the order of the list of favorites, I can't. The items are stuck in that order and the message bar no longer appears. If I take Scringo out, both message bar and favorites work as intended.
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
12/26/13 05:51 PM (11 years ago)
How did you get the Add to Favorites plugin to work??? i get a bunch of errors when i compile. -Jack
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/27/13 09:35 AM (11 years ago)
Yup I can confirm that Scringo's new version download mess around with the gesture recognisers again with the favourites plugin, I would suggest to disable the scringo swipe when on the favourites screen. I can't stress enough that this is Scringo not the plugin, if you were to try and create an editable tableview you will come across the same problem even with a third party table view
 
guyfeder
Veteran developer
Profile
Posts: 14
Reg: May 07, 2013
Ramat-Gan
140
like
12/30/13 04:40 AM (11 years ago)
To fix the message bar to work correctly when Scringo's sidebar is added one need to fix the message bar plugin code in the following way: Modify the file "MessageBarManager.m" under "message_bar" within "BT_Plugins" by changing the following line: [[[UIApplication sharedApplication] keyWindow] insertSubview:messageView atIndex:1]; Into [[[UIApplication sharedApplication] keyWindow] insertSubview:messageView atIndex:2]; (Note: Only the index was modified). I'll update you all when we'll have a workaround or a solution to the favourites plugin integration issue with Scringo.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/30/13 01:31 PM (11 years ago)
Thanks, Guy! The BuzzTouch - Scringo partnership is awesome! Since this was an un-anticipated problem that will be seen in other situations, please let us know when you create a solution that is robust. Thanks again for making BuzzTouch a First-class citizen in the Scringo world. (Bring on the Android plugin :) -- Niraj
 
guyfeder
Veteran developer
Profile
Posts: 14
Reg: May 07, 2013
Ramat-Gan
140
like
12/31/13 04:22 AM (11 years ago)
Hi all, Here's the solution I found for the Favourites plugin integration issue, when getting into Edit mode. Modify the Favourites plugin (AK_addTofavorites.m) EditTable method to look like this: - (void) EditTable{ if(self.editing) { [Scringo enableSwipeToOpenSidebar]; [super setEditing:NO animated:NO]; [favoritesTableView setEditing:NO animated:NO]; [favoritesTableView reloadData]; [self.navigationItem.rightBarButtonItem setTitle:@"Edit"]; [self.navigationItem.rightBarButtonItem setStyle:UIBarButtonItemStylePlain]; } else { [Scringo disableSwipeToOpenSidebar]; [super setEditing:YES animated:YES]; [favoritesTableView setEditing:YES animated:YES]; [favoritesTableView reloadData]; [self.navigationItem.rightBarButtonItem setTitle:@"Done"]; [self.navigationItem.rightBarButtonItem setStyle:UIBarButtonItemStyleDone]; } } Don't forget to add an import statement at the source top: #import <Scringo/Scringo.h> And, to make sure edit mode is turned off when you step of the favourites tab and Scringo swipe is enabled again, add the following method: -(void)viewWillDisappear:(BOOL)animated { [Scringo enableSwipeToOpenSidebar]; [super setEditing:NO animated:NO]; [favoritesTableView setEditing:NO animated:NO]; [self.navigationItem.rightBarButtonItem setTitle:@"Edit"]; [self.navigationItem.rightBarButtonItem setStyle:UIBarButtonItemStylePlain]; } It worked for me.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/31/13 04:40 AM (11 years ago)
Good stuff Guy I will add this to the plugin with commented out code to remove at Scringo Users leisure
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
12/31/13 11:52 PM (11 years ago)
Thanks a lot, Guy. I even offered to hire ya, but you went ahead and found a fix for the community. It is definitely much appreciated.
 

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.