iphoneControl handlers not found

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bleddy
Posts: 8
Joined: Wed Jan 17, 2007 2:51 am

iphoneControl handlers not found

Post by bleddy » Mon Jan 23, 2012 12:26 pm

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

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: iphoneControl handlers not found

Post by Klaus » Mon Jan 23, 2012 12:47 pm

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

bleddy
Posts: 8
Joined: Wed Jan 17, 2007 2:51 am

Re: iphoneControl handlers not found

Post by bleddy » Tue Jan 24, 2012 7:14 pm

Thanks Klaus!

That was my problem.

Bill

Post Reply