Hi,
I'm followed several tutorials on using Xcode's IB to create the view, and using MvvmCross to display the view with no success. With the latest Alpha release of Xamarin Studio (4.3.4) and Xamarin.iOS 7.2.1.40.
The error that I kept on getting is: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginView" nib but the view outlet was not set. at at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr) at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00008] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/.pmcs-compat.UIWindow.g.cs:215 at ..AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x0003a] in /.../AppDelegate.cs:34 at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/.pmcs-compat.UIApplication.cs:38 at ...Main (System.String[] args) [0x00008] in /...Main.cs:12
Summary of creating the view: 1.) Add the view from Add -> New File -> iOS -> iPhone View Controller 2.) Change the C# file's base class to MvxViewController 3.) Use this.CreateBindingSet<> to bind the properties in ViewDidLoad() 4.) Double click on the xib file, and Xcode will open the file. 5.) NOTE: This is different than the tutorial. I had to create a view under the view controller. If not, I can't add text and label controls. 6.) Create an outlet for the property. 7.) Save and exit Xcode. 8.) Make sure that the c#.designer.cs file has the new outlets. 9.) Run the simulator.
I've tried associating the File Owner to the View with no success like this link (http://stackoverflow.com/questions/4763519/loaded-nib-but-the-view-outlet-was-not-set-new-to-interfacebuilder).
Thanks for all the help!
-Mark