tags:

views:

73

answers:

1

I'm trying to figure out how to have a view, let's call it ThirdView, slide up from the bottom of the screen when a user clicks a particular button on SecondView.

thanks.

+2  A: 

Hi Driss,

You'll want to create the ThirdView in your SecondView and Present it as a Modal View passing in the secondView in the constructor. This will be the easiest way of animating it in the way you would like.

var thirdView = new ThirdView(secondView);
this.PresentModalViewController(thirdView, true);

in your third view, you'll want to call the passed in SecondView and call

secondView.DismissModalViewControllerAnimated(true);

Hope this helps,

ChrisNTR

chrisntr
I don't understand what the DismissModalViewControllerAnimated does. Can you explain?Also, I assume that this would be done in the ViewDidLoad handler?
Driss Zouak