my question is simple, i want to load a UIImage from an URL, but this URL change programmatically by date.
Example Today the url is http://www.abc.com/2011-10-13/alfa.jpg
tomorrow is http://www.abc.com/2011-10-14/alfa.jpg
the only thing that change is the date part, how can i figure my app load that “alfa.jpg” at current date everytime i start it?
Thanks!
You should use
[NSDate date]which returns the current date and time according to the device time (assuming your device time doesn’t differ from the actual by more than a day). Then you should format the date according to your url. Something like-