INNER CODE UNIT · Swift

viewDidLoad

InvadingOctopus/octopuskit · QuickStart/Universal/3 - MyGameViewController.swift:28

    override func viewDidLoad() {
        
        // 🔶 STEP 3.1: You may customize some screen-related settings here, such as the device orientations allowed in your game and status bar visibility etc.
        
        super.viewDidLoad() // ❗️ Required. You must call super.viewDidLoad() before any other code in your overriding implementation.
        
        #if os(iOS)
        
        supportedInterfaceOrientationsOverride[.phone] = .allButUpsideDown
        
        // prefersStatusBarHiddenOverride = true
        // prefersHomeIndicatorAutoHiddenOverride = true
        // shouldAutorotateOverride = false
        
        #endif
        
    }
    

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…