Page 1 of 1

Still is helloworld question!!

PostPosted: Jun 17, 2009 @ 3:14am
by samcheng62
After compile my helloworld program. It's work. But after I touch the screen let this program quit. It's down. The message is

2009-06-17 09:56:38.026 Helloworld[632:3c03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIApplication terminate]: unrecognized selector sent to instance 0xe12d90'

What's happen?

By the way. There is a worning in my program at line 49.
display->buffer.DrawFont(0, 0, &display->fontinternal, "Hello World!");
Worning message is "warning: deprecated conversion from string constant to 'char*'". How can I fix it?

PostPosted: Jun 17, 2009 @ 12:30pm
by edge
Hi,

The demo is build to exit the application when you touch the screen. So that's why the application quits.
[UIApplication terminate] is an undocumented way to quit an application. Normally you won't use this because the standard way to quit an iPhone application is to press the button.

PostPosted: Jun 18, 2009 @ 3:06am
by samcheng62
OK, I see. Thanks your help.