Question

For my app, I want to display a different image and text for different times of day. How would I go about doing this? Thanks!

Was it helpful?

Solution

To get the current time:

Get current system time?

Then use an if statement with the times that your program should change background.

You can refer to set background image for entire iPhone / iPad app for how to change the background.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top