The only way I found, with a bit of a google, was to override popViewControllerAnimated, but that might get you a blind save, not a validate.
This might work tho http://stackoverflow.com/a/1913094/2947 ViewWillDisappear, I think, still exists in iOS6 - but check, some of the ViewWillXXX and ViewDidXXX got deprecated. On Mon, Nov 5, 2012 at 1:40 AM, Dan Miser <[email protected]> wrote: > Thanks for the reply. The problem in making it modal is this is part of a > wizard and has many pages to fill out so I don't know that modal will work. > > What I ended up doing was adding a bool ShouldValidate property in the > derived element, and then in the controller's ViewWillDisappear method I set > the ShouldValidate to false on all of the elements. It works well. If you > see a hole in this strategy, it would be great to hear it. > > Dan Miser > Sent from my iPhone > > On Nov 4, 2012, at 6:33 PM, Miguel de Icaza <[email protected]> wrote: > > Hello, > >> The problem that I'm having is that if I press the Back button on the form >> in the top left, the validation still triggers and also allows the back >> navigation to occur. I'd like to prevent the navigation from happening, >> which I assume will also fix the other error I'm having where the message >> gets displayed 3-4 times after the back navigation has happened. >> >> Any ideas? > > > What Apple does with their interfaces is to make these kind of UIs be modal. > That means that you do not have a back button, and instead you provide a > "Cancel" on the left, and a "Done" on the right. > > Instead of "pushing" the UI, you should present your view controller in > modal mode. > > Miguel > > > _______________________________________________ > 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/ 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 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 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
