You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when i run it with your logic currently ViewDidLoad actually gets called twice which is actually leading to binding happening multiple times. I simply removed the logic and everything on my end worked fine.
I am using:
Mono 3.2.2
XCode 4.6.1
Xamarin.iOS 6.4.1.1
OSX 10.7.5
Xamarin Studio 4.1.9 (build 6)
Just to confirm: you are seeing ViewDidLoad called twice with _isInitialised==true both times? That's scary... will retest soon (will also check other places where I use the same ViewDidLoad hack - e.g. tabbarcontroller and tableviews)
That is correct I just tested the current code on an iPod Touch running iOS 6.
When I navigate to the View It first goes into the constructor and _isInitialised is set to true, and then ViewDidLoad() gets called because we are calling it.
And then ViewDidLoad gets called again and _isInitialised but this time is called by MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper()
@jamesmontemagno says it's working ok in the latest xam code...
https://github.com/slodge/NPlus1DaysOfMvvmCross/blob/master/N-11-KittenView_Collections/KittenView.Touch/Views/FirstView.cs
The text was updated successfully, but these errors were encountered: