Tag: nszombie

在应用程序购买 addPayment:付款崩溃]

我的应用程序内购买工作。 我用一个“购买”UIButton呈现一个ModalView。 您单击button,In App Purchase将执行此过程。 你甚至可以连续做几次。 如果打开模态视图,然后closures模态视图(使用UITabBarButtonItem),然后重新打开模态视图并点击“购买”button,就会出现问题。 该应用程序崩溃,我得到一个NSZombie读取 *** – [InAppPurchaseManager respondsToSelector:]:发送到释放实例0x1c7ad0的消息 NSZombie指向.m文件中的第160行。 我已经用评论标记了它。 我从这个页面获得了原始代码: http : //troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/ 我已经为此奋斗了很多天了…任何帮助将是真棒。 这是.h // // InAppPurchaseManager.h // Copyright 2010 __MyCompanyName__. All rights reserved. #import <UIKit/UIKit.h> #import <StoreKit/StoreKit.h> #define kInAppPurchaseManagerProductsFetchedNotification @"kInAppPurchaseManagerProductsFetchedNotification" #define kInAppPurchaseManagerTransactionFailedNotification @"kInAppPurchaseManagerTransactionFailedNotification" #define kInAppPurchaseManagerTransactionSucceededNotification @"kInAppPurchaseManagerTransactionSucceededNotification" #define kInAppPurchaseCreditProductId @"com.myname.app.iap" @interface InAppPurchaseManager : UIViewController <SKProductsRequestDelegate, SKPaymentTransactionObserver> { SKProduct *productID; […]

什么是NSZombie?

我见过build议说在debugging时将NSZombieEnabled设置为true 。 什么是NSZombie? 这是一个框架吗? 一个设置?

如何在Xcode 4中设置NSZombieEnabled?

如何在Xcode 4中为我的可执行文件设置NSZombieEnabled和CFZombieLevel ?

如何在Xcode中启用NSZombie?

我有一个崩溃的应用程序没有错误跟踪。 如果我debugging,我可以看到发生了什么事情的一部分,但不知道哪个对象是“僵尸”。 有人知道如何在Xcode 4中启用NSZombie吗?