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
Post a Comment