views:

281

answers:

2

I have a UITableView where a cell needs to be filled in with a date by selecting it through a pickerview. Instead of pushing the pickerview onto the navigationController I would want to let it slide up halfway into the screen with the tableview still visible in the upper half of the screen. I've seen some apps doing this neat effect before but I don't see on how to accomplish this.

Anyone some helpful hints on this ?

+1  A: 

I did this a little while back and asked about it.

I ended up doing exactly what the highest voted answer says: Put the UIPickerView in the same View as your other items and animate the sliding motion using UIView's beginanimation method.

Ben S
Ok, thanks. I was able to animate a view with a picker and a toolbar ontop of it into the same view, but can you tell me how to notify the parentview to slide the view back outwards the screen. In other words a way to let the parentview know he can dismiss the pickerview.
Oysio
A: 

Add a done button in your tool bar. Add a new target/action to the button to call a method on the UIViewController that has your table view and picker controller. Then have it animate the view back off the screen using a UIView animation block.

bstahlhood