ios - Nothing is displaying in Simulator with viewWillLayoutSubviews -


within gameview controller.swift file, removed viewdidload , put in viewwilllayoutsubviews because using dimensions of device in calculations. however, hello world sklabelnode no longer displayed in simulator. ideas on i'm doing wrong?

override func viewwilllayoutsubviews() {         super.viewwilllayoutsubviews()         let skview = self.view skview         if skview.scene != nil{             skview.showsfps = true             skview.showsnodecount = true             skview.showsphysics = true             // create , configure scene              let scene = skscene(size: skview.bounds.size)             scene.scalemode = skscenescalemode.aspectfill;              // present scene             skview.presentscene(scene)         } 


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -