ios - Update Once each in specific time -


override func update(_ currenttime: timeinterval) {     // called before each frame rendered     parallax.update(currenttime) } 

how can control update done once on specific period of time

your code doesn't add question, don't know if looking for, here code call function every x time (swift 3):

// call mymethod every 1 second : timer.scheduledtimer(timeinterval: 1, target: self, selector: #selector(mycontroller.mymethod), userinfo: nil, repeats: true) 

please search before post question -> answer


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -