Quantcast
Channel: User Bazinga - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Repeating self performSelector

$
0
0

I was just wandering If there is a simplier method to repeat the codes below for 20 seconds. If there is, how?

[self performSelector:@selector( move1) withObject:nil afterDelay:0.0];[self performSelector:@selector( move2) withObject:nil afterDelay:0.2];[self performSelector:@selector( move3) withObject:nil afterDelay:0.4];[self performSelector:@selector( move1) withObject:nil afterDelay:0.8];[self performSelector:@selector( move2) withObject:nil afterDelay:0.10];[self performSelector:@selector( move3) withObject:nil afterDelay:0.12];

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>