Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 53

Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
10/16/13 05:46 AM (12 years ago)

Help on a code tweak - nothing major...(i dont think)

With the easy in app purchase, when you have purchased something, and then move to the purchased screen, the transition slides the in app screen off to the left and displays the purchased screen. How can i change this transition ? Say to 'fade' for example? Thanks
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/13 09:12 AM (12 years ago)
Try ammending this method to what you want I've put fade in. I haven't tested this but should work -(void)goToPurchasedScreen { [BT_debugger showIt:self theMessage:@"goToPurchasedScreen"]; purchasePageFlag = YES; //load next screen if we have a next screen nickname set... if([productScreenNickname length] > 1){ BT_appDelegate *appDelegate = (BT_appDelegate *)[[UIApplication sharedApplication] delegate]; BT_item *screenObjectToLoad = [appDelegate.rootApp getScreenDataByNickname:productScreenNickname]; BT_item *tmpMenuItem = [[BT_item alloc] init]; //build an NSDictionary of values for the jsonVars property NSDictionary *tmpDictionary = [NSDictionary dictionaryWithObjectsAndKeys: @"unused", @"itemId", @"fade", @"transitionType", nil]; [tmpMenuItem setJsonVars:tmpDictionary]; [tmpMenuItem setItemId:@"0"]; [BT_viewControllerManager handleTapToLoadScreen:self.screenData theMenuItemData:tmpMenuItem theScreenData:screenObjectToLoad]; } }
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/13 09:13 AM (12 years ago)
Good luck
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
10/16/13 12:11 PM (12 years ago)
Worked a treat Andy...Thanks!!!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/16/13 01:55 PM (12 years ago)
Did you honestly expect anything less lol
 

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.