0

iPhoneプログラミングは初めてです。アラートビューを含むビューコントローラーがあります。alertview の [OK] ボタンをクリックすると、別の UITableviewcontroller が表示されます。オブジェクトを含むセルを取得できます。ナビゲーションバーを一番上に表示できません。そうですか教えてください。

ありがとう

4

1 に答える 1

0
-(void)alertView:(UIAlertView *) alertview clickedButtonAtIndex:(NSInteger)buttonIndex {

    if(buttonIndex == 1){
        Accidenthelpercall* help = [[Accidenthelpercall alloc]initWithNibName:@"Accidenthelpercall" bundle:nil];
        [self presentModalViewController:help animated:YES];
        [help setTitle:@"Accident Helper"];
        [help release];
    }

    if(buttonIndex == 2)
        {               
            Accidentdamagecar* damagecar = [[Accidentdamagecar alloc]initWithNibName:@"Accidentdamagecar" bundle:nil];
            [[self navigationController] pushViewController:damagecar animated:YES];
                    [damagecar setTitle: @"Car Damage"];
                    [damagecar release];

        }
}
于 2010-03-19T19:01:39.697 に答える