Reputation: 26223
I have setup a view and I want to cycle the color of some text on that view using a timer. Is there a timer method for a view that gets called (or I can setup to get called) on a regular basis?
Upvotes: 0
Views: 163
Reputation: 27601
NSTimer
will work for you as long as you don't require "fine" precision -- like sub-100ms.
Core Animation may work here as well. Are you animating a UILabel or are you rendering the text directly into the view with Core Graphics calls (or OpenGL)?
Upvotes: 0
Reputation: 1130
You could use an NSTimer with the following method:
timerWithTimeInterval:target:selector:userInfo:repeats:
Look here for further information:
Upvotes: 1