我已成功实施in App Purchase
。
但问题是当In-App purchase
成功导致我的应用程序崩溃时。
成功完成交易后,我将ViewController
弹出RootView
。
case SKPaymentTransactionStatePurchased:
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
[self doRemoveAds];
我的doRemoveAds
- (void)doRemoveAds{
[self.navigationController popToRootViewControllerAnimated:YES];
}
我无法找到问题。当我在没有doRemoveAds()
的情况下运行时,它运行正常。
答案 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>>>,
}
或其他错误