Create SKView programmatically?
问题 I like my code to be explicit so I want to remove the storyboard file and create SKView programmatically. What I have tried so far: I created a SpriteKit game project in xcode . Deleted the storyboard file. Deleted sroryboard property from Info.plist Added this code found in an example to the AppDelegate : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];