Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 112

Highveld
Aspiring developer
Profile
Posts: 25
Reg: Feb 03, 2013
Brisbane
3,500
02/21/13 12:15 AM (12 years ago)

More Screen - Chartboost

Hi guys and girls I am struggling to create a "More Screens" page for my app. I have created it all in Chartboost however I dont know how to implement it into xCode. Do I just create a new menu item called "More" with a html page attached? Where do I place the [cb showMoreApps]? Any help would be awesome! Kind regards Lloyd
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/21/13 09:51 AM (12 years ago)
I can probably help with this but trying to finish up some stuff right now. I think the MORE screen will actually become a new screen we'd have to add some code into. Let me look at the SDK and get back to you - (it might be a little bit)
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
02/21/13 05:44 PM (12 years ago)
Lloyd - what type of menu screen do you have that you are looking to load showMoreApps off of?
 
edzme
Aspiring developer
Profile
Posts: 7
Reg: Jun 13, 2012
San Francisco
70
like
02/21/13 08:09 PM (12 years ago)
If you can call [cb showMoreApps], it should create it's own view. While I'm not too familiar with buzztouch, we usually place showMoreApps on an IBAction, for example when the users presses a button from the home screen.
 
Highveld
Aspiring developer
Profile
Posts: 25
Reg: Feb 03, 2013
Brisbane
3,500
like
02/21/13 09:12 PM (12 years ago)
Hey guys Thanks for your reply. I am using the Menu with Image plugin. I just don't know if I create another menu row called More Apps? If I do, do I create a html page attached to it? What do I put in the html page? Also the [cb showMoreApps] where in xcode do I place that code? Kind regards Lloyd
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
02/21/13 09:44 PM (12 years ago)
Yes for this menu create another menu row, I just do a blank page. then in the .m file for the plugin (WB_screen_menuimage) Change the code under //pass this menu item to the tapForMenuItem method to the following: BT_item *thisMenuItem = [self.menuItems objectAtIndex:indexPath.row]; if([[BT_strings getJsonPropertyValue:thisMenuItem.jsonVars:@"titleText":@""]isEqualToString:@"More Apps"]) { // Configure Chartboost Chartboost *cb = [Chartboost sharedChartboost]; cb.appId = @"xxx"; cb.appSignature = @"xxx"; [cb showMoreApps]; } else { Be sure "More Apps" matches the name of your new menu item and fill in Chartboost info. Also I think you need to #import the Chartboost.h at the top of this .m file. Credit to Absentia for originally helping me with this method.
 

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.