Could not load NIB in bundle: 'NSBundle ··· with name 'chosenCountry''

后端 未结 3 1332
你的背包
你的背包 2021-01-29 05:09

I want touch the UIBarButtonItem in the top right, and push a new viewController. So, the code is:

UIBarButtonItem *addButton = [[UIBarButtonItem a         


        
3条回答
  •  不思量自难忘°
    2021-01-29 05:32

    Since you have added your vc in storyboard, hence initWithNibName will not work.

    Either use segue or use storyboard's method instantiateViewControllerWithIdentifier to instantiate the view controller

提交回复
热议问题