1. 程式人生 > >XCode warning:“View Controller” is unreachable because it has no entry points

XCode warning:“View Controller” is unreachable because it has no entry points

ins warning 指針 xcod tro 方案 ant access 不能

Unsupported Configuration: “View Controller” is unreachable because it has no entry points, and no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:].

直譯:不支持的設置:"View Controller"是不能被取到的,因為它沒有程序入口指針,也沒有標識符以供方法[UIStoryboard instantiateViewControllerWithIdentifier:]在運行時獲取。

分析:相當於你創了一個UIViewController卻什麽都沒設置。

解決方案:幹掉,或者起個標識符並使用。

XCode warning:“View Controller” is unreachable because it has no entry points