View Full Version : Loading a view based on system date?

Apr 6, 2009, 12:34 AM

I am creating a calendar application and on launch want it to load to the month that we are currently in... For example if I launch the app in April I would like my April view to load. If we are in May I would like my May view to load...and so on. I am new to developing and would appreciate any help.

Apr 6, 2009, 02:42 AM
So you're going to have separate views for every month...in every year? I'm presuming that the views are a representation of the days of the month? A grid?

It would be better to actually draw the views in code than have separate views in the nib.

Apr 6, 2009, 10:26 AM
Yes... it is a one year calendar and I have a different view for every month (.png)with all of the days of the month on it. I'd like to pick which of these views load based on the system date. Is there a way to do that?

Thank You...

Apr 6, 2009, 10:39 AM
Sounds like it would be better to have one view and then just load your background .png according to the month.

Apr 6, 2009, 02:28 PM
Thanks for the responses... I am a new developer so I am still a little confused... I do have a main view that I load every time I switch (months) views... Does anyone have any sample code to get me going in the right direction?

Thanks Again