2011-04-24 136 views
1

嗨,我是新的iPad。當用戶按下按鈕時,我想從一個筆尖移動到另一個筆尖。我怎樣才能做到這一點 ? 我試過,但它沒有在spitview控制器中加載任何東西。任何示例代碼?如何在iPad中從一個筆尖移動到另一個筆尖?

-(IBAction) goTo{ 
     NSLog(@"GO TO"); 
     GoFirst *go1 = [[GoFirst alloc] initWithNibName:@"GoFirst" bundle:nil]; 
    //  [self.navigationController popToViewController:go1 animated:YES]; 
      [self.navigationController pushViewController:go1 animated:YES]; 

     [go1 release]; 

} 

回答

0
GoFirst *go1 = [[GoFirst alloc] initWithNibName:"GoFirst" bundle:nil]; 
[self presentModalViewController:go1 animated:YES];