Hi,
I'm attempting to get a xib'less application (code first) up and running but
am getting an error in the simulator:
[<AppDelegate 0x71d3360> setValue: forUndefinedKey:] this class is not key
value coding-compliant for the key window
I do not have a main window xib, and am instead using the following:
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace TestNavigation
{
public class Application
{
static void Main (string[] args)
{
UIApplication.Main(args, null, "AppDelegate");
}
}
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
private UIWindow window;
private NavigationController controller;
// This method is invoked when the application has loaded its
UI and its
ready to run
public override bool FinishedLaunching (UIApplication app,
NSDictionary
options)
{
var screenBounds = UIScreen.MainScreen.Bounds;
controller = new NavigationController();
window = new UIWindow(screenBounds);
window.AddSubview (controller.View);
window.MakeKeyAndVisible ();
return true;
}
// This method is required in iPhoneOS 3.0
public override void OnActivated (UIApplication application)
{
}
}
}
Any help very much appreciated.
Mark
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/XIB-less-development-problems-tp3746953p3746953.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch