 |
 |
|
 |
11-16-2008, 08:13 PM
|
#1 (permalink)
|
|
Junior Member
Join Date: Nov 2008
Posts: 14
Rep Power: 0
|
How to display a date picker on an alert view?
Thank you in advance.
|
|
|
11-16-2008, 09:12 PM
|
#2 (permalink)
|
|
Senior Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
Rep Power: 3
|
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.
|
|
|
11-16-2008, 09:21 PM
|
#3 (permalink)
|
|
Junior Member
Join Date: Nov 2008
Posts: 14
Rep Power: 0
|
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
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.
|
|
|
|
11-16-2008, 09:42 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
Rep Power: 3
|
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.
|
|
|
11-16-2008, 09:50 PM
|
#5 (permalink)
|
|
Junior Member
Join Date: Nov 2008
Posts: 14
Rep Power: 0
|
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
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.
|
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
|
» Online Users: 214 |
| 30 members and 184 guests |
| 2ndSegment, AlanTaylor, Berko, CanadaDev, ChrisJW, Csprocket777, davidlansalot, ElysianEagle, enfamus, exosyphen, g.castaldi, hugo, Ins3rtNam3H3r3, joshsroka, kaleman, kyledavis, lildragon, martinws, MetaImi, mnemonic_fx, OneGlobe, shabzcohelp, Sicga, Sly33, soku, StatCoder, thegreyarea, The_Outrider, tmccphoto, _mubashir |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 8,231
Threads: 20,200
Posts: 90,217
Top Poster: RickMaddy (2,121)
|
| Welcome to our newest member, OneGlobe |
|