Push View Controller, Black Screen

前端 未结 7 2349
旧时难觅i
旧时难觅i 2020-12-14 08:55

I\'m pushing to a new view controller and passing some data to it. When I run the application I can press the button and push to a new view but the screen is completely blac

7条回答
  •  再見小時候
    2020-12-14 09:12

    I got a good one:

    Make sure you are implementing the right Super class, delegate, etc.. in the top part of the viewController you are trying to present. i.e.

    I wasn't using/implementing UINavigationController at all

    class TMDetailBlogViewController: UINavigationController {
      //code goes here
    }
    

    After

    class TMDetailBlogViewController: UIViewController {
      //code goes here
    }
    

提交回复
热议问题