Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Apr 4, 2011, 08:34 PM   #1
macrumors member
Join Date: Oct 2010
In App purchase - hide button when complete

I'm implementing an in app purchase and everything works fine in the sandbox environment but I can't seem to hide the "upgrade" button once the purchase is complete. I have a bool value to store whether the app has been purchased but after the purchase, I need to go to another view and come back before the upgrade button is hidden.

Any suggestions? I've followed the example in this website for the in app purchase template. Is there a way to send a notification to my main view and request it to hide the button?

- (IBAction)upgrade:(id)sender{
    InAppPurchase *inAppPurchase = [[InAppPurchase alloc] init];
    [inAppPurchase requestProUpgradeProductData];
    [inAppPurchase purchaseProUpgrade];
    if ([[NSUserDefaults standardUserDefaults] boolForKey:kupgradePurchased] == YES) {
        upgrade.hidden = YES;

Last edited by ppn; Apr 4, 2011 at 09:06 PM.
ppn is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Tap Zoo - In app purchases tucker61 iPod touch 35 Jan 9, 2013 09:27 AM
Why Do iOS Developers Add In App Purchases (IAP) In Their iPhone/iPad Apps? dpk2019 iPhone and iPod touch Apps 10 Dec 1, 2011 11:39 PM
In App purchases and ways to do it phillydogg28 iPhone/iPad Programming 3 Jul 13, 2011 08:29 PM
Apple Requiring eBook Apps With External Purchases to Also Offer In App Purchasing MacRumors News Discussion 481 Feb 6, 2011 03:55 PM
Sims 3 , In app purchase... WHEN????? stanislas29 iPhone 6 Jul 9, 2009 06:12 PM

All times are GMT -5. The time now is 10:59 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC