Today Extension

I cant get my today Extension to work... I am trying to build it just in code instead of creating a storyboard... I setup the following

NSExtensionPrincipalClass:TodayViewController

and I put above the class

[Register ("TodayViewController")]

but none of the code there seems to execute... i.e (pull from the test app.. just to see if it runs...

public override void ViewDidLoad ()
{
base.ViewDidLoad ();

        var v = new UIView (new CGRect (0, 0, UIScreen.MainScreen.Bounds.Width, 200f));
        v.BackgroundColor = UIColor.Blue;
        this.View = v;

        // Do any additional setup after loading the view.
    }
Tagged:
Sign In or Register to comment.