APP集成tapjoy积分墙(6)
来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:26 点击:次
NSLog(@"No Tapjoy Display Ads available");
}
- (NSString*)adContentSize
{
return TJC_DISPLAY_AD_SIZE_320X50;
}
- (BOOL)shouldRefreshAd
{
return YES;
}
#pragma mark Tapjoy Video Ad Delegate Methods
- (void)videoAdBegan
{
NSLog(@"Tapjoy Video Ad Began Playing");
}
- (void)videoAdClosed
{
NSLog(@"Tapjoy Video Ad View Closed");
}
- (void)videoAdError:(NSString *)errorMsg
{
NSLog(@"Tapjoy Video Ad Error: %@", errorMsg);
}
#pragma mark Tapjoy View Delegate Methods
- (void)viewWillAppearWithType:(int)viewType
{
NSLog(@"Tapjoy viewWillAppearWithType: %d", viewType);
}
- (void)viewDidAppearWithType:(int)viewType
{
NSLog(@"Tapjoy viewDidAppearWithType: %d", viewType);
}
- (void)viewWillDisappearWithType:(int)viewType
{
NSLog(@"Tapjoy viewWillDisappearWithType: %d", viewType);
}
- (void)viewDidDisappearWithType:(int)viewType
{
NSLog(@"Tapjoy viewDidDisappearWithType: %d", viewType);
}
#pragma mark UIAlertViewDelegate
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
if( buttonIndex == 1) {
[TapjoyConnect spendTapPoints:tapPoints];
}
}
@end
#import "CPTapjoyManager.h"
#import "AppDelegate.h"
#import "DataManager.h"
static CPTapjoyManager * _tjManager;
@implementation CPTapjoyManager
+(CPTapjoyManager *)sharedTJManager
{
if(_tjManager==nil)
{
_tjManager = [[CPTapjoyManager alloc] init];
}
return _tjManager;
}
-(id)init
{
if(self == [super init])
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tjcConnectSuccess:) name:TJC_CONNECT_SUCCESS object:nil];
相关新闻>>
- 发表评论
-
- 最新评论 更多>>