|
|
#1 |
|
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? Code:
- (IBAction)upgrade:(id)sender{
InAppPurchase *inAppPurchase = [[InAppPurchase alloc] init];
[inAppPurchase requestProUpgradeProductData];
[inAppPurchase purchaseProUpgrade];
if ([[NSUserDefaults standardUserDefaults] boolForKey:kupgradePurchased] == YES) {
upgrade.hidden = YES;
}
}
__________________
Ontario G1,Ontario M1,Alberta Learner ,ICBC Practice Test,安省驾照笔试,Manitoba Learner Last edited by ppn; Apr 4, 2011 at 09:06 PM. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 | MacRumors.com 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 04:53 AM.






Linear Mode

