1

UITableView と UIViewController の間でデータを渡そうとすると問題が発生します。Google とスタック オーバーフローを探しましたが、成功しませんでした。

ここで NSLog は私が欲しいものを印刷しています

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    DetalhesPosto *detalhesPosto = [[DetalhesPosto alloc]init];

    detalhesPosto.aliasPosto = alias;

    NSLog(@"%@",detalhesPosto.aliasPosto);

    [self.navigationController pushViewController:detalhesPosto animated:YES];

    [detalhesPosto release];

}

navigationController がビュー detalhesPosto を呼び出すとき、コードがあります:

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.


    labelAliasPosto.text = [NSString stringWithFormat:@"%@",aliasPosto];

    NSLog(@"YES or NO ? %@",aliasPosto);
}

しかし、NSLog は印刷されています => 2012-11-06 18:48:58.061 MAP[7006:f803] YES または NO ? >

ハーフアップしてくれませんか?

Tks パウロ

4

0 に答える 0