Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 6, 2009, 01:34 AM   #1
kevy089
macrumors newbie
 
Join Date: Apr 2009
Loading a view based on system date?

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.
kevy089 is offline   0 Reply With Quote
Old Apr 6, 2009, 03:42 AM   #2
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: 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.
caveman_uk is offline   0 Reply With Quote
Old Apr 6, 2009, 11:26 AM   #3
kevy089
Thread Starter
macrumors newbie
 
Join Date: Apr 2009
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...
kevy089 is offline   0 Reply With Quote
Old Apr 6, 2009, 11:39 AM   #4
admanimal
macrumors 68040
 
Join Date: Apr 2005
Sounds like it would be better to have one view and then just load your background .png according to the month.
admanimal is offline   0 Reply With Quote
Old Apr 6, 2009, 03:28 PM   #5
kevy089
Thread Starter
macrumors newbie
 
Join Date: Apr 2009
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
kevy089 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
View-based table view losing selection highlight Starfox Mac Programming 1 Nov 28, 2012 02:02 AM
View based table view layout woes Starfox Mac Programming 0 Nov 8, 2012 11:50 PM
View based vs Window based application Vishwas Gagrani iPhone/iPad Programming 1 Oct 14, 2012 06:25 PM
Idea: View-Based Notifications (Instead of Focus-Based) faroZ06 OS X 10.8 Mountain Lion 0 Jul 28, 2012 01:32 PM
Reordering rows in a view-based NSTableVIew monsieurpaul Mac Programming 2 Jul 19, 2012 09:21 AM

Forum Jump

All times are GMT -5. The time now is 01:40 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC