ここに私のコードがあります:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    if (isPurchased == NO) {
        return [UITableviewExample count];
        [UITableviewExample release];
    }
    else
    {
        return [UITableviewExample2 count];
        [UITableviewExample2 release];
    }
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        if (isPurchased == NO) {
            cell.textLabel.text = [UITableviewExample objectAtIndex:indexPath.row];
            [UITableviewExample release];
        }
        else {
            cell.textLabel.text = [UITableviewExample2 objectAtIndex:indexPath.row];
            [UITableviewExample2 release];
        }
    }
    return cell;
}
誰が私を助けてくれますか? アプリ内購入が成功した後、変更はありません。私が使用する場合
-(IBAction)test
{
    if (isPurchased == yes) {
        buyButton.hidden = yes;
    }
}
よく働く。私は2つのアプリ、アプリ内購入を試しました。非表示にしたり、ラベルのテキストを変更したりしても、すべてうまく機能します。UITableViewのアプリ内購入を機能させるにはどうすればよいですか? アプリ内購入が成功した後に行を変更したい。エラーはどこにありますか? ありがとうございました。