trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
05/22/14 09:11 AM (9 years ago)

Scringo launch from Navbar

BT3, xcode5 Cant seem to get this to work :o/ Have looked at other threads on this, and i know ive had it working in the past (BT2), so cant fathom out what i'm doing wrong here... Anyone got a guide?
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/22/14 10:02 AM (9 years ago)
Hey trout. I have it working in my app, but can't get to the code until late tonight. Hopefully somebody else can help you sooner, but I will get you the info if not.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/22/14 10:18 AM (9 years ago)
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/22/14 10:56 AM (9 years ago)
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
05/22/14 10:57 AM (9 years ago)
For a left button to trigger Scringo use in the viewWillAppear method for any plugin that you want a button: self.navigationItem.leftBarButtonItem = [ScringoAgent scringoActivationBarItem]; For right button to trigger, use: self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; and don't forget to #import <Scringo/ScringoAgent.h>
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/23/14 05:42 AM (9 years ago)
ok, so the button appears, but doesn't actually do anything... with my imports: #import <Scringo/ScringoAgent.h> in the viewWillAppear: //shows nav bar -(void)viewWillAppear:(BOOL)animated{ [BT_debugger showIt:self theMessage:@"viewWillAppear"]; [super viewWillAppear:animated]; self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; This code is the same as my old code on BT2 also, but doesn't appear to be doing anything on BT3. Tried in Carousel, and Mac image gallery. Also, would like to get the Scringo Like button working again in the gallery
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/23/14 06:09 AM (9 years ago)
https://github.com/Scringo?tab=repositories .thats weird did you look at buzztouch docs on their website.above is their github samples
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/23/14 06:25 AM (9 years ago)
Yeah i've probably missed something really simples... I think, once i fix the swipe opening, then the button opening will work. Have d/loaded the sample so will have a play over the weekend EDIT: looks like i missed the Change fadinStartiew method bit as detailed here: http://www.scringo.com/docs/buzztouch/ios-integration/
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
05/23/14 08:37 AM (9 years ago)
Did you get it to work properly? Let me know and I can help...
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/23/14 09:34 AM (9 years ago)
i'll have to tinker with it later... i'm certain that the fact that its not launching the sidebar is exactly why it wont launch with a button, and i'm pretty sure that i just missed a call.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/24/14 11:20 AM (9 years ago)
I got 30 minutes this morning before the child woke up, and I had indeed missed the step that I suggested above. Swipe to open is now working, and when I get some more time I'll try again with the button - I think it'll work fine. Also I want the scringo to come out from the right side and not the left (just personal preference) so will try and figure that also
 

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.