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

前端 未结 7 2024
遥遥无期
遥遥无期 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:22

    Try this:

    nextViewController *obj =[[nextViewController alloc]initWithNibName:@"nextViewController" bundle:nil];
    [self.navigationController pushViewController:obj animated:YES];
    [obj release];
    

提交回复
热议问题