Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error running the Hello, Phone Tutorial

$
0
0

All, I hope you can help. I'm trying to follow the tutorial referenced, I have Xamarin, xCode and a Macbook. The application compiles just fine, but before the screen loads I get this error:

MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSUnknownKeyException Reason: [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Action1_Click. at at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr) at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIWindow.g.cs:129 at iOS_HelloWorld.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00038] in /Users/kimble01/Projects/iOS_HelloWorld/iOS_HelloWorld/AppDelegate.cs:31 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/UIApplication.cs:38 at iOS_HelloWorld.Application.Main (System.String[] args) [0x00008] in /Users/kimble01/Projects/iOS_HelloWorld/iOS_HelloWorld/Main.cs:16

Here is the offending line it references in Main.cs: window.MakeKeyAndVisible ();

But that is not the issue. The issue looks to be in this action hook: partial void ActionButtonClick (NSObject sender) { this.lblResults.Text = "Action Button: " + ((UIButton)sender).CurrentTitle + " clicked!";

    }

I'd like to know how to troubleshoot this issue, any help would be appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>