PushViewController Leads To Black Screen

后端 未结 7 576
暗喜
暗喜 2020-12-10 13:46
SettingsViewController *viewController = [[SettingsViewController alloc] init];
    [[self navigationController] pushViewController:viewController animated:YES];
         


        
7条回答
  •  温柔的废话
    2020-12-10 14:01

    try this

      SettingsViewController *viewController = [[SettingsViewController alloc]initWithNibName:@"SettingsViewController" bundle:[NSBundle mainBundle]]; 
      [self.navigationController pushViewController:viewController animated:YES];
    

提交回复
热议问题