Could not load NIB in bundle: 'NSBundle when using storyboarding

后端 未结 3 1100
南方客
南方客 2020-12-11 01:13

I am getting the following error when I use my app for a little while. Usually takes between 50 and 100 movements to cause the crash. I am not making sense of it though as I

相关标签:
3条回答
  • 2020-12-11 01:41

    This question appears to have been answered in the comments area. Reposting here so question shows as having an answer. -- gs.

    Answer copied from comments:

    There was a memory leak in a 3rd party component. Once the resources were exhausted, it would crash with the error above. A couple weeks of QA/Beta testing confirmed that it is gone. Thanks. – stubble jumper Jan 24 at 2:29

    0 讨论(0)
  • 2020-12-11 01:41

    I've had this problem before. The name of my nib was different than the name of my view controller while using - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil as my init.

    0 讨论(0)
  • 2020-12-11 01:56

    I got exactly this error, too.

    Finally I found the cause was I accessed self.tableView in -(id)initWithCoder:(NSCoder *)aDecoder before it was initiated.

    So, I moved those code into - (void)viewDidLoad, everything went well.

    0 讨论(0)
提交回复
热议问题