Configure Viewcontroller.swift as the first page after startup in Appdelegate.swift
Import Uikit@uiapplicationmainclass Appdelegate:uiresponder, uiapplicationdelegate { var window:uiwindow? Func application (application:uiapplication, didfinishlaunchingwithoptions launchoptions: [Nsobject:anyobject]?)- > Bool { //start with the first page Self.window = UIWindow (Frame:UIScreen.mainScreen (). bounds); Here set Rootviewcontroller for Viewcontroller instance let VC = Viewcontroller (); Self.window?. Rootviewcontroller = vc;//The bank VC to fill out the page you want to select Self.window? BackgroundColor =. Whitecolor (); Self.window?. Makekeyandvisible (); return true; }
Write the background color briefly in the Viewcontroller.swift
Import Uikitclass Viewcontroller:uiviewcontroller { override func Viewdidload () { super.viewdidload () // Additional setup after loading the view, typically from a nib. Self.view.backgroundColor =. Yellowcolor ();//Background color settings } override Func didreceivememorywarning () { Super.didreceivememorywarning () //Dispose of any resources, can be recreated. }}
Select the appropriate "TARGETS", select "General", find the following two configuration items, and clear the contents.
Delete the Main.storyboard and Launchscreen.storyboard files.
Then the yellow page appears on the run
The first page after iOS configuration starts