Try it without the parent this.DismissModalViewControllerAnimated(true);
works for me :) On Fri, Jun 29, 2012 at 6:44 AM, Alex White <[email protected]> wrote: > Hi, > > I can't get my head round how to code the a modal view controller. > > in my calling code > > _streetview = new StreetviewiPhone(url,true, "RevisionPointsiPhone"); > this.NavigationController.PresentModalViewController(_streetview, true); > > which I guess is right? > > then in the called view controller > > public void btnClose_Clicked(object sender, EventArgs e) { > this.ParentViewController.DismissModalViewControllerAnimated(true); > } > > but this does not work??, any pointers? > > thanks > > > Alex > > > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
