嗨,我是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];
}
答案 0 :(得分:0)
GoFirst *go1 = [[GoFirst alloc] initWithNibName:"GoFirst" bundle:nil];
[self presentModalViewController:go1 animated:YES];