How to navigate from one view controller to another view controller on button click?

前端 未结 7 2083
遥遥无期
遥遥无期 2021-01-04 13:48

I am new to iOS Application development, please help me how can I go from one view controller to another view controller on button click?

7条回答
  •  粉色の甜心
    2021-01-04 14:06

    //SAViewController will be your destiation view

    // import SAViewController.h file in your current view

    SAViewController *admin = [[SAViewController alloc]initWithNibName:@"SAViewController" bundle:nil];
    [self presentModalViewController:admin animated:YES];
    [admin release];
    

提交回复
热议问题