iOS - Push viewController from code and storyboard

后端 未结 5 1228
我在风中等你
我在风中等你 2020-12-01 18:30

I have this code

 PlaceViewController *newView = [self.storyboard instantiateViewControllerWithIdentifier:@\"PlaceView\"];
 [self presentViewController:newVi         


        
5条回答
  •  忘掉有多难
    2020-12-01 19:20

    For Storyboards, you should use performSegueWithIdentifier like so:

     [self performSegueWithIdentifier:@"identifier goes here" sender:self];
    

提交回复
热议问题