 |
 |
|
 |
11-16-2008, 08:13 PM
|
#1 (permalink)
|
|
Registered Member
Join Date: Nov 2008
Posts: 21
|
How to display a date picker on an alert view?
Thank you in advance.
|
|
|
11-16-2008, 09:12 PM
|
#2 (permalink)
|
|
New Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
|
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)
|
|
Registered Member
Join Date: Nov 2008
Posts: 21
|
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)
|
|
New Member
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
|
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)
|
|
Registered Member
Join Date: Nov 2008
Posts: 21
|
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.
|
|
|
|
02-07-2010, 09:54 PM
|
#6 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 2
|
UIPicker popup
Quote:
Originally Posted by jchen01
I think the second approach is a great idea. let me try it out and see how does it go. thanks a lot 
|
Hello...I'm interested to know if you were able to get this working, I am looking to add this "scroll up from the bottom" picker feature to my app and am looking for pointers. Did you get it working?
|
|
|
02-07-2010, 10:07 PM
|
#7 (permalink)
|
|
Registered Member
Join Date: Nov 2008
Posts: 21
|
I end up adding a new view and popped from the bottom. It;s really simple.
However I didn't adjust the size of that view so it only cover part of the view underneath.
Quote:
Originally Posted by bjmiller
Hello...I'm interested to know if you were able to get this working, I am looking to add this "scroll up from the bottom" picker feature to my app and am looking for pointers. Did you get it working?
|
|
|
|
02-08-2010, 05:32 PM
|
#8 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 2
|
Quote:
Originally Posted by jchen01
I end up adding a new view and popped from the bottom. It;s really simple.
However I didn't adjust the size of that view so it only cover part of the view underneath.
|
Good stuff, thanks for replying. I'm gonna try it out...if I run into snags, do you mind if I ask you to help point me in the right direction?
|
|
|
02-08-2010, 08:35 PM
|
#9 (permalink)
|
|
Registered Member
Join Date: Nov 2008
Posts: 21
|
certainly. let me know what you want to know later
Quote:
Originally Posted by bjmiller
Good stuff, thanks for replying. I'm gonna try it out...if I run into snags, do you mind if I ask you to help point me in the right direction?
|
|
|
|
 |
| 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: 283 |
| 18 members and 265 guests |
| acmecorps, alex_ivanov, ChrisMayer, dmerat, dvaii, Erythema, ianian, iGeorG, jyu, kmadhukishore, Lokendra, markdude, oldmicah, Pilly170, refreshe, robertsechenfen, Rossco, simpsonaty |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,238
Threads: 39,016
Posts: 171,113
Top Poster: smasher (2,570)
|
| Welcome to our newest member, Erythema |
|