Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

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

Reply
 
LinkBack Thread Tools Display Modes
Old 11-16-2008, 08:13 PM   #1 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 14
Rep Power: 0
jchen01 is on a distinguished road
Default How to display a date picker on an alert view?

Thank you in advance.

jchen01 is offline   Reply With Quote
Old 11-16-2008, 09:12 PM   #2 (permalink)
Senior Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
Rep Power: 3
RickMaddy is on a distinguished road
Default

You don't. Or at least you shouldn't. An alert view is just that, an alert view. It's meant to show an important, typically unexpected, message to the user.

What are you actually trying to do with this date picker? There is probably a more appropriate way to do what you want.
RickMaddy is offline   Reply With Quote
Old 11-16-2008, 09:21 PM   #3 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 14
Rep Power: 0
jchen01 is on a distinguished road
Default

hmmm, coz I want to display date on the view, and let the user change it. but the thing is there is a table underneath, so it takes a lot of space. that's why i m thinking about popping up a datepicker. but if I cant add it to an alert or action sheet, I guess I have to set up a new view for it.

what do u thinking?

Quote:
Originally Posted by RickMaddy View Post
You don't. Or at least you shouldn't. An alert view is just that, an alert view. It's meant to show an important, typically unexpected, message to the user.

What are you actually trying to do with this date picker? There is probably a more appropriate way to do what you want.
jchen01 is offline   Reply With Quote
Old 11-16-2008, 09:42 PM   #4 (permalink)
Senior Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
Rep Power: 3
RickMaddy is on a distinguished road
Default

Displaying a modal view controller with the date picker is one way. If you want to be able to see some of your table while the date picker is being shown then you can write your own code to slide a view up from the bottom or side. This view would be just big enough for the date picker. Either approach would be more appropriate then using an alert view.
RickMaddy is offline   Reply With Quote
Old 11-16-2008, 09:50 PM   #5 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 14
Rep Power: 0
jchen01 is on a distinguished road
Default

I think the second approach is a great idea. let me try it out and see how does it go. thanks a lot

Quote:
Originally Posted by RickMaddy View Post
Displaying a modal view controller with the date picker is one way. If you want to be able to see some of your table while the date picker is being shown then you can write your own code to slide a view up from the bottom or side. This view would be just big enough for the date picker. Either approach would be more appropriate then using an alert view.
jchen01 is offline   Reply With Quote
Reply

Bookmarks

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


» Stats
Members: 8,231
Threads: 20,200
Posts: 90,217
Top Poster: RickMaddy (2,121)
Welcome to our newest member, OneGlobe
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:45 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0