you could also create a UINavigationController, and put it over the top of your UIViewController (ie, same frame/bounds) and then push into that. It's a bit messy, but it should work. Or as Jason says, use PresentModalViewController to present a new UINavViewController
On Sat, Nov 12, 2011 at 14:47, Jason Awbrey <[email protected]> wrote: > have yout tried PresentModalViewController? > > On Sat, Nov 12, 2011 at 8:36 AM, John Hair <[email protected]> wrote: >> >> Sorry I haven't made it clear but I don't have a UINavigationController, >> or at least I don't think I do. My AppDelegate creates UIViewController. >> >> Thanks >> John >> >> Sent from my iPhone >> >> On 12 Nov 2011, at 14:08, Dean Cleaver <[email protected]> >> wrote: >> >> > One way to solve this is to create a constructor in each applicable >> > class passing in a reference to the navigation controller so that your last >> > 3 UIViews have a reference to it. >> > >> > -----Original Message----- >> > From: [email protected] >> > [mailto:[email protected]] On Behalf Of JohnnyNoMates >> > Sent: Saturday, November 12, 2011 5:16 AM >> > To: [email protected] >> > Subject: [MonoTouch] Trying to use MonoTouch.Dialog on my first app >> > >> > Hi guys, >> > Ive got a really simple MonoTouch app, my AppDelegate creates a >> > UIViewController, which contains a UIView, which contains a UIScrollView >> > which contains 3 more UIViews. Each of the last 3 UIViews have a button and >> > when it is pressed I want it to display a MonoTouch.Dialog. But all the >> > examples Ive seen I need to push the view controller I create onto a >> > navigation controller, which I don't have. My UIViewController doesn't have >> > a PushViewController method but the cocoa examples Ive seen suggest it >> > should, so not sure what I need to do next? >> > >> > Thanks >> > John >> > >> > -- >> > View this message in context: >> > http://monotouch.2284126.n4.nabble.com/Trying-to-use-MonoTouch-Dialog-on-my-first-app-tp4034137p4034137.html >> > Sent from the MonoTouch mailing list archive at Nabble.com. >> > _______________________________________________ >> > MonoTouch mailing list >> > [email protected] >> > http://lists.ximian.com/mailman/listinfo/monotouch >> >> >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch > > > _______________________________________________ > 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/ 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
