Why is my new view controller not appearing?

前端 未结 2 1159
小鲜肉
小鲜肉 2021-01-24 19:29

I am using the following code to push my view controller, except when the UIButton is pressed - nothing happens apart from the NSLog statement:

-(IBAction)doChan         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-24 19:44

    Have you debugged and checked that your navigationController isn't nil ?

提交回复
热议问题