[MonoTouch] UiApplicationDelegate
Robert Jordan
robertj at gmx.net
Thu Dec 29 14:19:18 EST 2011
On 26.12.2011 18:29, Marco Teodoro wrote:
> static void Main(string args)
> {
> #if V2
> UiApplication.Main(args,null,"F5App");
> #else
> UiApplication.Main(args,null,"AppDelegate");
> #endif
> }
>
> So, if the compilation symbol is mine, i instanciate my custom
> UiApplicationDelegate. i have put the [Register("AppDelegate")] attribute
> on my custom class. but i'm getting "Unable to instantiate the
> UIApplication delegate instance. No class named F5App is loaded"
You must decorate your app delegate with [Register("F5App")].
Robert
More information about the MonoTouch
mailing list