PushViewController Leads To Black Screen

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


        
7条回答
  •  时光取名叫无心
    2020-12-10 14:13

    Use this:

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

提交回复
热议问题