Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 11    Views: 74

Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
03/28/14 10:01 PM (10 years ago)

Help, How to get Scringo menu to work with button & mosaic?

So..I’m giving myself a headache trying to figure this out. So giving up and asking for help now. here’s what I’m trying to do. Open the Scringo menu in my app, by either: a) Right NavBar button 2) Mosaic plugin: Tile Custom 1 I have gotten the button to appear but when I click em they don’t do anything. (I need to enter the code letting the app know how to respond to the tap. But I don’t know what that code is, where to put it and how to implement it. Any help would be appreciated. (all the documentation I have seems a bit outdated..and I can’t parse way way to figure it out.) Thanks all. € P.S. I have the SCR Chatrooms plugin activated and it works with no problem, but I want to access the other Scringo features also.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 10:07 PM (10 years ago)
Hey Uelsimon, I did something similar with making a button launch Scringo on the Tabbar Utility plugin. See the code I used in this thread: http://www.buzztouch.com/forum/thread.php?tid=7EA3979FD66A3F38A12F1D0 And the main line of code to actually launch Scringo would be this: [Scringo initWithAppId:@"YOUR_APP_ID_HERE" completion:^{ [Scringo openMenuWithNavigationController:nil withScringoNavControllerEnabled:YES];
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/28/14 10:14 PM (10 years ago)
Woohoo, great making progress. 2) Mosaic menu Tile custom 1 simple added the following code in "case 7:" case 7: NSLog(@"Scringo Menu"); //Insert custom code here [Scringo openMenuWithNavigationController:nil withScringoNavControllerEnabled:YES]; break; now, when I press the tile, assigned to that case, it brings the menu up form the bottom. GREAT! Now to figure out how to do the same on the navbar button. stay tuned.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 10:17 PM (10 years ago)
Gotcha covered there too... https://www.buzztouch.com/forum/thread.php?tid=C96FCFB581006B7AB146E72 Compliments of MrDavid ;)
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/28/14 10:30 PM (10 years ago)
sadly..I'm either too daft or too tired..I can't figure out where to put what to get it to work when the button is pressed.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 10:35 PM (10 years ago)
You'll probably want it in your BT_viewcontroller.m file (to show on the apps main view screen), although it can be used on individual plugin screens using the same code in that particular plugins .m file
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/28/14 10:40 PM (10 years ago)
Yup I'm in Viewcontroller.m. and at the 'end setup status bar' ... I have //////// end setup status bar ///////////////////////////////////////// #pragma mark € Scringo button UIBarButtonItem *rightBarButton = [Scringo scringoActivationBarItem]; self.navigationItem.rightBarButtonItem = rightBarButton; [Scringo openMenuWithNavigationController:nil withScringoNavControllerEnabled:YES]; ///////////////////////////////////////// //////// setup nav bar but nothing happens when i press the nav bar button.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 10:44 PM (10 years ago)
Hmmm.... did you import the scringo.h at the top of the file? Also, make sure the init scringo with your app ID has already happened (doesn't hurt anything if it init's twice... so try adding the init line above your scringo code just to be sure, just to make sure thats not the issue, like this: [Scringo initWithAppId:@"YOUR_APP_ID_HERE" completion:^{ Other than not, I'm not sure. I've only used the first method, haven't actually done it with the right nav bar button, but everything looks right.
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/28/14 10:51 PM (10 years ago)
yup, I did init in the appdelegate.m and i can activate it through the mosaic using the same code. but its like the button isn't connecting to the call/action for some reason.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 10:54 PM (10 years ago)
Hmmm... someone more experienced than I will have to chime in on this one. I know NCBuzz has used Scringo quite a bit, including using a custom right nav button. Here's his post if it helps: http://www.buzztouch.com/forum/thread.php?tid=31C104251868C451A6DB752
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
03/28/14 11:01 PM (10 years ago)
ok..I tried the text method which worked. FINALLY. Thanks a mill Angry Ninja €
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/28/14 11:06 PM (10 years ago)
Sweet! No problem, glad you got it working :)
 

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.