Loading a view based on system date?

Discussion in 'iOS Programming' started by kevy089, Apr 5, 2009.

  1. macrumors newbie

    Joined:
    Apr 5, 2009
    #1
    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.
     
  2. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    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.
     
  3. thread starter macrumors newbie

    Joined:
    Apr 5, 2009
    #3
    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...
     
  4. macrumors 68040

    Joined:
    Apr 22, 2005
    #4
    Sounds like it would be better to have one view and then just load your background .png according to the month.
     
  5. thread starter macrumors newbie

    Joined:
    Apr 5, 2009
    #5
    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
     

Share This Page