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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -