开发者

Iphone reload tableview after a purchase has finished gives odd error. " error: expected ':' before '.' token"

Guys I'm using the code below. Xcode refuses to compile the last line. I get:

"error: expected ':' before '.' token"

on the last line. Can't figure out what is wrong...

开发者_高级运维
- (void) failedTransaction: (SKPaymentTransaction *)transaction
{   
    if (transaction.error.code != SKErrorPaymentCancelled)      
    {       
        // Optionally, display an error here.       
    }   
    [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
    [SelectorController.tableView reloadData];
}


Could it be that your SelectorController is a class, not an instance of a class?


In your code, what is a SelectorController? Given the CamelCaseCapitalization, it looks like it's a class name. Perhaps somewhere else in your code you have a line that defines an instance of the SelectorController something like this:

SelectorController * selectorController;

In which case (pun intended) the problematic line should be:

[selectorController.tableView reloadData];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜