Brandon Talmood
Brandon Talmood

Reputation: 45

How do I get my iPhone app to perform functions depending on the time?

I want to learn how, for example, I could program a picture in Interface Builder to change between 3 pictures according to the time of day.

Or how I could program a certain UIButton to appear and disappear depending on the time of day—or even more specifically, the month of the year.

Where can i go to learn about this? And what is the formal name for this? Using time signatures? Or time stamp?

Upvotes: 0

Views: 326

Answers (1)

jtbandes
jtbandes

Reputation: 118781

The NSDate class allows you to inspect the current time (also see Date and Time Programming Topics, and the NSTimer class allows you to schedule tasks.

Upvotes: 2

Related Questions