假如我现在创建了2个页面(iphone里面叫view) A和B对应文件是a.h a.m a.xib
b.h b.m b.xib 程序启动的时候打开的是a页面,
  如何在A页面的某个按钮事件中,转到B页面呢?
  另外A - > B 的时候怎么传送数据?
  谢谢

解决方案 »

  1.   

     DateView *controller = [[DateView alloc] initWithNibName:@"DateView" bundle:nil];
    controller.delegate = self;
    [self presentModalViewController:controller animated:YES];
    [controller release];
      

  2.   

    一般应用都会加navigationcontroller
    首先你要在a中加入一个UIButtion,然后button中绑定一个点击方法,方法新建一个b类对象,然后把b类
    push到栈顶就可以了
    [self.navigationController pushViewController:b animated:YES];