http://bugzilla.novell.com/show_bug.cgi?id=619325
http://bugzilla.novell.com/show_bug.cgi?id=619325#c0 Summary: Inconsistent execution of ViewWillAppear event Classification: Mono Product: MonoTouch Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ViewWillAppear event fired each time I loaded a subview, until I added a View Controller to the main view and then added subviews to that controller. Original design just had a window.MakeKeyAndVisible (); in the main because I did not support rotation. Added a ViewController to the mainWindow definition and loaded subviews with, this.mainViewController.View.AddSubview(subView.View);. At that point the delegates defined in the ViewWillAppear event in the subviews stopped working. Problem resolved by adding a ViewDidLoaded override and moving delegates to that event. I'm not sure if this is a documentation issue or a bug. Either way it lead to hours of frustration. Reproducible: Always Steps to Reproduce: 1.Add ViewController to mainView and place delegates in ViewWillAppear 2. 3. Actual Results: No control delegates -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
