BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
05/29/13 08:36 PM (12 years ago)

Scringo Not Being Added to Source Download

Hi. Has anyone noticed that selecting Scringo to add to the download doesn't seem to add it into the source code? The .pdf that got downloaded with the source code talks about integrating Scringo assuming the SDK has been added already into the source code, but I didn't see anything in the app delegate.m file or the ScringoAgent.h file anywhere in the source code...so, not sure what exactly is happening? Do we need to add the SDK manually into XCode? Trying to finish off this app, and these little things are beginning to "bug" me now (after I just changed some code to accomodate a couple other things) :-) LOL...maybe I should have a drink...Cheers
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/29/13 09:18 PM (12 years ago)
Just follow the Buzztouch How To's for integrating Scringo. You will need to download the Scringo SDK from Scringo.com and add it to your project. There is also an appdelegate.m file example. Typing on my iPhone so let me know how it goes. Cheers Ian
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
05/29/13 10:16 PM (12 years ago)
Yeah I noticed this too...even if you select it on the packaging page it doesn't show up in the project. Like ian said though, you might be surprised how easy it is to just add it in yourself
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/29/13 11:02 PM (12 years ago)
Yep, I'm adding it in, after having a shot of rum :-) Too many little steps...I'm getting these build errors...any suggestions? I updated the app delegate .m file. Never saw these errors before when Scringo had been added in for us. App won't build. Thanks http://postimg.org/image/yrq2kdxxn/
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/29/13 11:21 PM (12 years ago)
OK, I added the AdSupport.framework into XCode (in "Build Phases"/"Link Binary With Libraries" (all the other frameworks needed for Scringo all seemed to be there), and now the errors are gone and build works and Scringo shows up. Next step, add Facebook support...man, nothing is ever easy (these steps should be in the videos/docs) :-)
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
05/29/13 11:38 PM (12 years ago)
Everything is in the How To's Watch the video too on the Facebook stuff Still on iPhone typing dang!!
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/29/13 11:41 PM (12 years ago)
OK, got Scringo working! Anyone have some simple code to show a button on the top right of the navigation bar to show the Scringo sidebar? :-) And also where to put that code? Wasn't expecting to get into coding this much, but I'm learning, with a little help! :-) Cheers
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/13 12:19 AM (12 years ago)
To add the Scringo Nav Bar Button add these lines of code to each plugins .m file This way allows you to still have the rightnavbutton from the control panel appear. So you would have 2 buttons. Add thisu lien with the other imports #import <Scringo/ScringoAgent.h> Add these lines at the end of the viewWillAppearMethod NSMutableArray* navBarButtons = [[NSMutableArray alloc] init]; [navBarButtons addObject:[ScringoAgent scringoActivationBarItem]]; if(self.navigationItem.rightBarButtonItem != nil){ [navBarButtons addObject:self.navigationItem.rightBarButtonItem]; } self.navigationItem.rightBarButtonItems = navBarButtons; if you're not bothered about having the buzztouch right nav bar button. add this instead in teh viewWillAppearMethod self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem];
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 12:47 AM (12 years ago)
@kittsy. Thanks! Will try that out. By the way, any idea why I'm not seeing the "More Apps" tab in Scringo, even though I've enabled it in the Scringo control panel? I disabled the other ads under "Manage Ads". Cheers
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 02:38 AM (12 years ago)
@kittsy. I added the import and the last line of code you sent into the Menu with Image plugin's WB_screen_menuImage.m file, as follows but got an error...am I adding the right code in the right place? Cheers -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [BT_debugger showIt:self theMessage:@"viewWillAppear"]; //flag this as the current screen bctech_appDelegate *appDelegate = (bctech_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; //if we have not yet inited data.. if(self.didInit == 0){ [self performSelector:(@selector(loadData)) withObject:nil afterDelay:0.1]; [self setDidInit:1]; //Show Scringo Nav Bar button self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; }
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/13 02:43 AM (12 years ago)
have you added with the other imports at the top of the WB_screen_menuImage.m file #import <Scringo/ScringoAgent.h>
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 02:46 AM (12 years ago)
Yep, did that too first..
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/13 02:51 AM (12 years ago)
ah I see it you need to but a closing } below [self setDidInit:1]; you added the code to the above if statement you may get another error then if so delete the alst } from that method here is the full method -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [BT_debugger showIt:self theMessage:@"viewWillAppear"]; //flag this as the current screen bctech_appDelegate *appDelegate = (bctech_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; //if we have not yet inited data.. if(self.didInit == 0){ [self performSelector:(@selector(loadData)) withObject:nil afterDelay:0.1]; [self setDidInit:1]; } //Show Scringo Nav Bar button self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; }
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 03:02 AM (12 years ago)
LOL...thanks...I gotta get some sleep! Still no luck...even tried putting the code just before the last closing "}". Full method is below - not sure where to put this code in there :-) //view will appear -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [BT_debugger showIt:self theMessage:@"viewWillAppear"]; //flag this as the current screen bctech_appDelegate *appDelegate = (bctech_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; //if we have not yet inited data.. if(self.didInit == 0){ [self performSelector:(@selector(loadData)) withObject:nil afterDelay:0.1]; [self setDidInit:1]; } //show adView? if([[BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"includeAds" defaultValue:@"0"] isEqualToString:@"1"]){ [self showHideAdView]; } }
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/13 03:13 AM (12 years ago)
//view will appear -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [BT_debugger showIt:self theMessage:@"viewWillAppear"]; //flag this as the current screen bctech_appDelegate *appDelegate = (bctech_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; //if we have not yet inited data.. if(self.didInit == 0){ [self performSelector:(@selector(loadData)) withObject:nil afterDelay:0.1]; [self setDidInit:1]; } //show adView? if([[BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"includeAds" defaultValue:@"0"] isEqualToString:@"1"]){ [self showHideAdView]; } //Show Scringo Nav Bar button self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; }
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 03:24 AM (12 years ago)
Tried that already...and again now...getting thread errors :-)
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/13 03:35 AM (12 years ago)
Does the error still appear with out the line for scringo. What did the errors say?
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/30/13 11:40 AM (12 years ago)
No, there are no errors without the Scringo code...cheers
 

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.