如何在iPad中从一个笔尖移动到另一个笔尖?

时间:2011-04-24 03:49:21

标签: iphone objective-c cocoa-touch ipad ios4

嗨,我是iPad新手。当用户按下按钮时,我想从一个笔尖转到另一个笔尖。我怎样才能做到这一点 ? 我试过跟随,但它没有在spitview控制器中加载任何东西。任何示例代码?

 -(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];

 }

1 个答案:

答案 0 :(得分:0)

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