Title17
SKProductsRequest * productsReq = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObjects:@"tw.pitch.unlimited",@"tw.pitch.30coin",nil]];
//用server取得可用貨號可更為彈性
//指定產品要求的 delegate 對象
productsReq.delegate = self;
要在這一行加入<SKProductsRequestDelegate>
@interface StoreTableViewController ()
<SKProductsRequestDelegate>
然後再新增一行
-(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
}
Comments
Post a Comment