From 3caffadb393cada7d9bbc433e0c96e6650ed873a Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 22 Aug 2011 11:13:42 -0400 Subject: Integrated TestFlight SDK See https://testflightapp.com/sdk/doc/ --- Classes/Cart_CollectAppDelegate.m | 4 ++++ Classes/MainMenuLayer.h | 1 + Classes/MainMenuLayer.m | 11 +++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'Classes') diff --git a/Classes/Cart_CollectAppDelegate.m b/Classes/Cart_CollectAppDelegate.m index 158f660..0af3ac0 100755 --- a/Classes/Cart_CollectAppDelegate.m +++ b/Classes/Cart_CollectAppDelegate.m @@ -13,6 +13,7 @@ #import "GameMode.h" #import "RootViewController.h" #import "MainMenuLayer.h" +#import "TestFlight.h" @implementation Cart_CollectAppDelegate @@ -42,6 +43,9 @@ - (void) applicationDidFinishLaunching:(UIApplication*)application { + // REMOVE THIS LINE FOR RELEASE BUILDS + [TestFlight takeOff:@"66a3925c85c93e7628c14d167ff6c1b7_MjM4MTEyMDExLTA4LTE3IDEzOjEyOjQ4Ljg2NDE2OQ"]; + [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; NSMutableDictionary* registerDefaults = [NSMutableDictionary dictionaryWithObjectsAndKeys: diff --git a/Classes/MainMenuLayer.h b/Classes/MainMenuLayer.h index e43c5e1..4914b59 100755 --- a/Classes/MainMenuLayer.h +++ b/Classes/MainMenuLayer.h @@ -18,5 +18,6 @@ - (void)newgame; - (void)tutorial; - (void)highscores; +- (void)feedback; @end diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 8b21fab..32b85cb 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m @@ -11,6 +11,7 @@ #import "ClassicGameMode.h" #import "TutorialMode.h" #import "Cart_CollectAppDelegate.h" +#import "TestFlight.h" @implementation MainMenuLayer @@ -47,8 +48,9 @@ CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; CCMenuItemImage* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)]; CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; - - CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; + CCMenuItemImage* feedbackMenuItem = [CCMenuItemImage itemFromNormalImage:@"feedback.png" selectedImage:@"feedback2.png" target:self selector:@selector(feedback)]; + + CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, feedbackMenuItem, nil]; [menu alignItemsVertically]; menu.position = ccp(240, 100); [self addChild:menu]; @@ -75,4 +77,9 @@ [listController release]; } +- (void)feedback +{ + [TestFlight openFeedbackView]; +} + @end -- cgit 1.4.1