Page 1 of 1

iphoneControl handlers not found

Posted: Mon Jan 23, 2012 12:26 pm
by bleddy
Hi All

I'm working on a little iOS app and would like to use some of the iPhone native controls. Unfortunately when i include iphoneControl... commands or functions, LiveCode reports an error at runtime that the handler can't be found.

Am I missing something? Is there some optional module I should load/enable? I'm able to load my app (without iphoneControl calls) on my device, so I think I have the basic setup correct.

TIA

Bill

Re: iphoneControl handlers not found

Posted: Mon Jan 23, 2012 12:47 pm
by Klaus
Hi Bill,

unfortunately the IDE does not recognize special mobile commands and reports an error!
You need to use an IF THEN clause to use them:

Code: Select all

...
if the environment = "mobile" then
  ## do iOS Stuff here
end if
...
Best

Klaus

Re: iphoneControl handlers not found

Posted: Tue Jan 24, 2012 7:14 pm
by bleddy
Thanks Klaus!

That was my problem.

Bill