Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kevy089

macrumors newbie
Original poster
Apr 5, 2009
5
0
Hi,

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.
 

caveman_uk

Guest
Feb 17, 2003
2,390
1
Hitchin, Herts, UK
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.
 

kevy089

macrumors newbie
Original poster
Apr 5, 2009
5
0
Loading a view based on system date?

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...
 

admanimal

macrumors 68040
Apr 22, 2005
3,531
2
Sounds like it would be better to have one view and then just load your background .png according to the month.
 

kevy089

macrumors newbie
Original poster
Apr 5, 2009
5
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.