First: you have tested this on an actual device, yes? If not: get an
ipod touch and test it using a release build. It's the same as what
the appstore has

Second: make sure the action screen is declaired outside of the mehod
- somewhere in the surrounding class.If you dont, it's garbaged
collected before it pops up.

 eg:


public class myviewcontroller {
UIActionSheet actionSheet;

public void ShowActionSheet()
{
  actionSheet = new UIActionSheet("Choose Subscription")
                               {"Up to 100MB, $399","Up to 1GB,
$499","Up to 10GB, $799","Unlimitted,
$999","Cancel"};
                               actionSheet.Style =
UIActionSheetStyle.BlackTranslucent;
                               actionSheet.CancelButtonIndex = 4;
                               actionSheet.ShowInView(this.View);
                               actionSheet.Clicked += delegate(object
sender, UIButtonEventArgs e) {
                               switch (e.ButtonIndex) {
                                       case 0:
                                               subSKU = "sku1";
                                               break;
                                       case 1:
                                               subSKU = "sku2";
                                               break;
                                       case 2:
                                               subSKU = "sku3";
                                               break;
                                       case 3:
                                               subSKU = "sku4";
                                               break;
                                       case 4:
                                               subSKU = "";
                                               break;
                                       }
                                       if(subSKU != "")
                                       {
                                               Console.WriteLine("SKU "+subSKU);
                                               InAppPurchaseManager
storeKit = new InAppPurchaseManager(subSKU);
                                               storeKit.LoadStore();
                                               if(storeKit.canMakeProUpgrade())
                                               {

storeKit.PurchaseProUpgrade();
                                               }
                                       }
                               };



On Thu, Jul 21, 2011 at 17:06, ric3kg <[email protected]> wrote:
> I'm having a problem with the code below. It works in Development build but
> Apple says does not when Deployment build sent to them... Any thoughts?
> Apple says, "Nothing happens" when they tap the button to activate the
> sheet...
>
> var actionSheet = new UIActionSheet("Choose Subscription")
>                                {"Up to 100MB, $399","Up to 1GB, $499","Up to 
> 10GB, $799","Unlimitted,
> $999","Cancel"};
>                                actionSheet.Style = 
> UIActionSheetStyle.BlackTranslucent;
>                                actionSheet.CancelButtonIndex = 4;
>                                actionSheet.ShowInView(this.View);
>                                actionSheet.Clicked += delegate(object sender, 
> UIButtonEventArgs e) {
>                                switch (e.ButtonIndex) {
>                                        case 0:
>                                                subSKU = "sku1";
>                                                break;
>                                        case 1:
>                                                subSKU = "sku2";
>                                                break;
>                                        case 2:
>                                                subSKU = "sku3";
>                                                break;
>                                        case 3:
>                                                subSKU = "sku4";
>                                                break;
>                                        case 4:
>                                                subSKU = "";
>                                                break;
>                                        }
>                                        if(subSKU != "")
>                                        {
>                                                Console.WriteLine("SKU 
> "+subSKU);
>                                                InAppPurchaseManager storeKit 
> = new InAppPurchaseManager(subSKU);
>                                                storeKit.LoadStore();
>                                                
> if(storeKit.canMakeProUpgrade())
>                                                {
>                                                        
> storeKit.PurchaseProUpgrade();
>                                                }
>                                        }
>                                };
>
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/ActionSheet-problem-tp3684121p3684121.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to