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!
Asked
Active
Viewed 1,579 times
1 Answers
0
To get the current 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.

Community
- 1
- 1

George Chondrompilas
- 3,167
- 27
- 35
-
How would NSDate work with an if statement? Also, I want different times, not dates. – Jul 08 '13 at 22:19
-
Same way actually. First you should create the NSDate object and then use it in the if statement as a datestring – George Chondrompilas Jul 08 '13 at 22:36
-
Can you actually tell me how to do this? I can't figure this out by going to various answers and trying to piece it together. I tried to use an if else if statement, but I get the error: conversion of int to NSString disallowed with ARC. Any ideas? – Jul 09 '13 at 00:22