Xcode Includes .xib files that have been deleted!

后端 未结 9 1343
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-30 01:11

I have a problem with Xcode that I can\'t seem to resolve. I have a view controller lets call \"foobarViewController\", there was a \"foobarViewController.xib\" to accompany

9条回答
  •  北海茫月
    2020-12-30 01:55

    Sometimes it is very annoying to remove the app from the device/simulator, especially when you have saved data and configuration.

    To solve this issue, for every View Controller for which you removed the .xib file add the following code:

    -(NSString*) nibName
    {
        return nil;
    }
    

提交回复
热议问题