I'm trying to integrate the tapfortap sdk into my tier 1 project.
Tapfortap is an ad banner exchange where you display ads for other games in your app which earns you credits that will display ads for your app in other developers apps, thereby gaining exposure and downloads for everyone using it (hopefully).
These are the instructions for integrating it into iOS:
1. Check in when your app launches.
Import TapForTap.h in your app delegate and call our check in method.
#import "TapForTap.h"
- (void) application: (UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
[TapForTap setDefaultAppId: @"<YOUR APP ID>"];
[TapForTap checkIn];
// Set up the main window and root view controller
return YES;
}
2. Add a TapForTapAdView to your views.
In the view controllers in wich you would like to display ads, in your viewDidLoad method create a TapForTapAdView and add it to your view.
// Be sure to import TapForTap.h
#import "TapForTap.h"
- (void) viewDidLoad
{
[super viewDidLoad];
TapForTapAdView *adView = [[TapForTapAdView alloc] initWithFrame: CGRectMake(0, 0, 320, 50)];
[self.view addSubview: adView];
// You don't have to do this if you set the default app ID in your app delegate
adView.appId = @"<YOUR APP ID>";
[adView loadAds];
// If you do not use ARC then release the adView.
// [adView release];
}
I'm trying to integrate it into the iOS interpreter project for my tier 1 app. It looks to me as though the first part would go in Core.m under..
(BOOL) application
UIApplication *)application didFinishLaunchingWithOptions
NSDictionary *)launchOptions
However the second part has me puzzled as I can't find a viewDidLoad method anywhere in the project. viewDidUnload is there but the closest thing I can find to viewDidLoad is viewWillAppear
I'm also unsure if the project uses ARC
Can anyone point me in the right direction to implement this?