Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 214

mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
03/28/13 03:01 PM (12 years ago)

Activating scringo from navigation bar

I am going to give Scringo a shot and see how it goes. I already use swipe gestures in my app so have disabled all swiping in Scringo. For now I just want to have the scringo menu available from my home screen. I made my home screen using my xib button menu and have made a navigation bar for this screen so I can have both right and left buttons. Although I can get the search barbutton item to work fine I am having a problem getting the left icon to "activate" scringo. Here is what I have in my home page plugin's .m file as per their website: //start Scringo on Navigation bar -(IBAction) scringoTap: (UIBarButtonItem*) sender{ [ScringoAgent scringoActivationBarItem]; } I have connected the barbutton item to this action on the xib. Yet when I run the app and click on it nothing happens. Any suggestions? Here is a screenshot if it helps: https://www.dropbox.com/s/mt49dsdouidrjjo/home.png Thanks! Josh
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/28/13 03:28 PM (12 years ago)
Yep had the same problem .. I had to remove the initialization of scringo from the didfinishlaunching in the app delegate to the end of the app delegate. I contacted scringo and here was there response.. Worked perfect afterwards. It also helped with the issue of it not opening during the relaunch of te app as well. "I think this is a known issue, try to move the call to [ScringoAgent startSession:...] to the end of configureEnvironmentUsingAppData"
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/28/13 03:40 PM (12 years ago)
Still no luck :( I can slide it open (when I don't have sliding disabled) so it seems to work but even after moving that down to the other section the navigation bar button still won't open activate the scringo layer.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/28/13 03:45 PM (12 years ago)
Okay, I got it working. I changed: [ScringoAgent scringoActivationBarItem]; To this: [ScringoAgent openSidebar]; I'll leave the initializing code though in the section you mentioned to avoid future problems. Thanks again! Josh
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
03/29/13 04:30 PM (12 years ago)
Guys I use Menu with image plugin and have no idea how to add a button to open the Scringo. I can slide it from the side no probe but need the option of button...any help would be welcomed.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/29/13 05:33 PM (12 years ago)
thegiboyote... My situation is a little different since I only have scringo on my home screen which is the xib button menu so I did all of this with the xib files. I'm probably not the best one to ask... I've seen a few apps already from Buzztouch that have the scringo icon in the right navigation bar. All I can recommend is the tutorial on "add a print button" which tells you how to take an existing right navbar icon (home, refresh, rewind etc) and reprogram it to do something else (like open the scringo layer). If you want to check out that tutorial here is the link: http://jc-evans.com/blog/2013/02/12/new-tutorial-adding-a-print-button-to-an-app/ But i think you're better off waiting for someone who has done this already to weight in. Good luck! Josh
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
03/30/13 05:28 AM (12 years ago)
Thanks mate managed to sort it out. A matter of going into WB_screen_menuImage.m Add #import <Scringo/ScringoAgent.h> and then //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; UIBarButtonItem *rightBarButton = [ScringoAgent scringoActivationBarItem]; self.navigationItem.rightBarButtonItem = rightBarButton; That made it work !!!! In case any one else has same issue Great work guys
 

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.