starting ios project without storyboard

前端 未结 9 1239
渐次进展
渐次进展 2021-01-12 23:28

Im having some troubles to start an iOS app using xibs instead of storyboard. The problem is that im getting a black screen and the first view controller is not being called

9条回答
  •  天涯浪人
    2021-01-12 23:58

    OK, at last i got it.

    What i had to do is just add again

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    After this, just delete the .h, .m and .xib and create them again.

    For any reason its working fine now.

提交回复
热议问题