JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
06/20/13 08:23 AM (12 years ago)

Scringo AddNewTab - How to add new tab in Scringo programatically and how to link it?

Hi guys, Loving the new Scringo SDK just installed - it has a much smoother flow than the last version. In the Scringo dev centre, theres an option to add a new tab in the Scringo menu and have it link to another screen within the app (so I'm led to believe). It seems as simple as giving the tab a name and an ID for where you'd like it to link to. The ID must begin with a letter and we're told it can be as simple as adding a "string". So my question is this: Is it possible to utilise this feature using BT apps and, if so, what does one need to do to implement it? Do we only need to add an "ID" of a screen and, if so, what is this ID? Initially, I thought it would be hidden in the Json but, try as I might, I can't get a screen to load. Any pointers greatly appreciated.
 
LocoLopez
Code is Art
Profile
Posts: 211
Reg: Jan 12, 2012
Orlando
9,760
like
06/20/13 09:46 AM (12 years ago)
Im stuck in the exact same spot...
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
06/20/13 12:29 PM (12 years ago)
Hi, The idea is that Scringo sends notification when the user tapped on the custom tab, and you need to catch this notification in your code. In iOS this is how to do it (you can add it in your appDelegate file): // This is to asked to be notified [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myCommandClicked:) name:kScringoCustomButtonClicked object:nil]; // And this method will be called when the user tapped the custom command: -(void)myCommandClicked:(NSNotification *)aNotification { // Here you open the BT screen you want } The tab ID is actually important only when you want to have two different custom tabs, so the ID's are the way to distinguish between them. If you are only using one custom tab, the ID is not important. Hope that helped. Unfortunately I am not an expert on how to open a BT screen from the code, but maybe someone else can help you with that. Elon
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
06/20/14 08:28 AM (11 years ago)
Hello, is there any update on this Elon? Can you advise where to place the code in the appDelegate file? Thanks, Tony
 

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.