【问题标题】:How to move from one nib to another nib in iPad?如何在 iPad 中从一个笔尖移动到另一个笔尖?
【发布时间】:2011-08-11 17:31:20
【问题描述】:

您好,我是 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];

 }

【问题讨论】:

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


    【解决方案1】:
    GoFirst *go1 = [[GoFirst alloc] initWithNibName:"GoFirst" bundle:nil];
    [self presentModalViewController:go1 animated:YES];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多