使用Storyboard时出现以下警告:Scene is unreachable due to lack of entry points and does not have an identifier

使用Storyboard时出现以下警告:

warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:

这是因为使用storyboard时没有关联类:在Xcode右边选项中建立storyboard与相应类的关联,并设置storyboardID即可

你可能感兴趣的:(storyboard,Xcode警告,idenfifier)