相关疑难解决方法(0)

iOS 7 - Failing to instantiate default view controller

I am using Xcode 5 in a newly created app and when I just create it I go for the run button e click on it, then the project gets built but it does not show in the iOS Simulator and I get the following message:

 Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - 
 perhaps the designated entry point is not set?
Run Code Online (Sandbox Code Playgroud)

I've Googled about it of course and everybody points out that this is happening because …

iphone xcode objective-c ios xcode5

90
推荐指数
9
解决办法
11万
查看次数

如何使用Swift,iOS 7设置rootViewController

我想在app delegate中设置rootViewController ..

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {

     var rootView: MyRootViewController = MyRootViewController()
     //Code to set this viewController as the root view??


     return true

}
Run Code Online (Sandbox Code Playgroud)

ios swift

27
推荐指数
4
解决办法
5万
查看次数

标签 统计

ios ×2

iphone ×1

objective-c ×1

swift ×1

xcode ×1

xcode5 ×1