Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.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 11-16-2008, 08:13 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 21
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)
New Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
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)
Registered Member
 
Join Date: Nov 2008
Posts: 21
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)
New Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,121
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)
Registered Member
 
Join Date: Nov 2008
Posts: 21
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
Old 02-07-2010, 09:54 PM   #6 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 2
Default UIPicker popup

Quote:
Originally Posted by jchen01 View Post
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?
bjmiller is offline   Reply With Quote
Old 02-07-2010, 10:07 PM   #7 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 21
Default

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 View Post
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?
jchen01 is offline   Reply With Quote
Old 02-08-2010, 05:32 PM   #8 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 2
Default

Quote:
Originally Posted by jchen01 View Post
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?
bjmiller is offline   Reply With Quote
Old 02-08-2010, 08:35 PM   #9 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 21
Default

certainly. let me know what you want to know later

Quote:
Originally Posted by bjmiller View Post
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?
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


Enter the iPhone App Challenge!  Win $500!
» 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
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:59 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0