In Viewa There is a button, click to jump to another page, with the following code viewb will be black screen, nothing to see.
<span style= "FONT-SIZE:14PX;" >-(void) login: (ID) sender{mainviewcontroller *mainview=[[mainviewcontroller Alloc]init]; NSLog (@ "%@", __name.text); if ([__name.text isequaltostring:@ "CCC"]&&[__pwd.text isequaltostring:@ "123"]) {[Self Presentviewcontroller : MainView animated:yes Completion:nil];} }</span>
viewb viewcontroller identity inspector set storyboard id second
<span style= "FONT-SIZE:14PX;" >-(void) login: (ID) Sender{mainviewcontroller *mainview=[self.storyboard instantiateviewcontrollerwithidentifier:@ "Second"]; NSLog (@ "%@", __name.text), if ([__name.text isequaltostring:@ "CCQ"]&&[__pwd.text isequaltostring:@ "123"] {[self presentviewcontroller:mainview animated:yes completion:nil];}} </span>
This will allow you to jump to the viewb page normally.
iOS Presentviewcontroller:destinationview post-jump black screen issue