应用程序成功购买ios后应用程序崩溃

时间:2015-07-15 06:22:43

标签: ios objective-c crash xcode6 in-app-purchase

我已成功实施in App Purchase

但问题是当In-App purchase成功导致我的应用程序崩溃时。

成功完成交易后,我将ViewController弹出RootView

   case SKPaymentTransactionStatePurchased:
      [[SKPaymentQueue defaultQueue] finishTransaction:transaction];

            [self doRemoveAds];

我的doRemoveAds

   - (void)doRemoveAds{
   [self.navigationController popToRootViewControllerAnimated:YES];
   }

我无法找到问题。当我在没有doRemoveAds()的情况下运行时,它运行正常。

1 个答案:

答案 0 :(得分:0)

所以它与IAP没有任何关系。您的null false 0 undefined '' [] {}

可能是fn main() { let v = vec![1,5,3,8,12,56,1230,2,1]; let nodes = Vec::<Node>::with_capacity(v.len()); let mut root: Option<&mut Box<Node>> = None; let mut prev: &Option<&mut Box<Node>> = &None; for i in v { let curr = Some(&mut Box::new(Node { value: i, next: None })); match *prev { Some(ref mut p) => { p.next = curr; prev = &mut p.next; }, None => { root = curr; prev = &mut root; } } } } struct Node<'a> { value: i32, next: Option<&'a mut Box<Node<'a>>>, } 或其他错误