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.
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.
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.
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.
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?
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?