Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2010, 03:42 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default Calendar Creation

I need to create a calendar with custom date formats like, "December 10 2010 " and place in a Picker.I know how to get the required date format but not able to generate calendar. Help me with good tutorials or suggestions.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Old 12-10-2010, 07:40 AM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by santosh_kumar View Post
I need to create a calendar with custom date formats like, "December 10 2010 " and place in a Picker.I know how to get the required date format but not able to generate calendar. Help me with good tutorials or suggestions.
You need to provide more information about what you want to do.

Do you want your app to localize to different country's date formats? Specific date formats have the disadvantage that they don't handle different "locales" very well (if at all). It's usually better to ask for a "date style" and let the system decide how to format it. That way, if your customer is in a European country, they'll get day month year, and if they are in the US, they'll get our (strange) month day year format.

Are you trying create a custom version of the UIDatePicker control? In the US, at least, a date picker has 3 wheels, where the left wheel is the month name, the the middle wheel is the day of the month, and the right wheel is the year. That sounds like what you want. Or, are you trying to create a picker that has a list of full dates in one big wheel? And what format, exactly do you want?
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 12-12-2010, 11:16 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
You need to provide more information about what you want to do.

Do you want your app to localize to different country's date formats? Specific date formats have the disadvantage that they don't handle different "locales" very well (if at all). It's usually better to ask for a "date style" and let the system decide how to format it. That way, if your customer is in a European country, they'll get day month year, and if they are in the US, they'll get our (strange) month day year format.

Are you trying create a custom version of the UIDatePicker control? In the US, at least, a date picker has 3 wheels, where the left wheel is the month name, the the middle wheel is the day of the month, and the right wheel is the year. That sounds like what you want. Or, are you trying to create a picker that has a list of full dates in one big wheel? And what format, exactly do you want?

Thanks for your reply Duncan. I need to create a calendar not like UIDatePicker which allows only one format Month/Date/Year. Calendar should allow the user to specify his preferred date format like "13 December,2010" or "Dec 13,2010". I'm not talking about "locale".Simply, i want to present the UIDatePicker in a better way.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Old 12-17-2010, 07:44 AM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by santosh_kumar View Post
Thanks for your reply Duncan. I need to create a calendar not like UIDatePicker which allows only one format Month/Date/Year. Calendar should allow the user to specify his preferred date format like "13 December,2010" or "Dec 13,2010". I'm not talking about "locale".Simply, i want to present the UIDatePicker in a better way.
There's quite a bit of work in what you want to do. You need to generate arrays of month names, day number strings, and year strings. You'll need to build a multi-segment picker and set it up to use the day, month, and year arrays as the contents of each spinner in the picker. If you want the picker to be able to reorder the month, day, and year spinners based on a user preference or some other method, you'll need to think through the logic of keeping track of which spinner contains each value, and converting the indexes back to a date.

This is a custom control, and I doubt if there's any tutorial or guide to doing what you want to do. It means writing a page or two of fairly complex code.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 12-19-2010, 10:54 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
There's quite a bit of work in what you want to do. You need to generate arrays of month names, day number strings, and year strings. You'll need to build a multi-segment picker and set it up to use the day, month, and year arrays as the contents of each spinner in the picker. If you want the picker to be able to reorder the month, day, and year spinners based on a user preference or some other method, you'll need to think through the logic of keeping track of which spinner contains each value, and converting the indexes back to a date.

This is a custom control, and I doubt if there's any tutorial or guide to doing what you want to do. It means writing a page or two of fairly complex code.
Thanks for your support Duncan.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone & ipod touch apps

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 383
7 members and 376 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0