[MonoTouch] UiApplicationDelegate

Marco Teodoro mteodoro at f5itweb.pt
Mon Dec 26 12:29:17 EST 2011


Hello guys,

One of my colleges started an application a while ago base on monotouch
project template for iphone. Now i'm on that project and i want to start
for refactoring some things that. For that i have a this code on
the beginning of the app

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"

Can you send me a sample or tell me how to lauch the
correct UiApplicationDelegate?

*Best Regards,*
*Marco Teodoro*

*F5ITWEB - Creative Solutions*
Av. D. João II, Parque das Nações****

Edifício Infante Lote 1.16.05 8ºC****

1990-083 Lisboa
Fax: +351 210 127 449****

Tel: +351 934 490 387****

Web: http://www.f5itweb.pt****

Skype: marco.teodoro****

[image: Descrição: Descrição:
cid:75B82AC2-8C12-48E6-94E1-1859AF642EF4]<http://www.facebook.com/f5itweb>[image:
Descrição: Descrição:
cid:77A4BC91-2CA5-4A30-9E5D-815A26B82DB4]<http://twitter.com/#!/f5itweb>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111226/324ff0ec/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 732 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monotouch/attachments/20111226/324ff0ec/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 683 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monotouch/attachments/20111226/324ff0ec/attachment-0001.png 


More information about the MonoTouch mailing list