Can't close card with UIWebView in it

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Can't close card with UIWebView in it

Post by ctflatt » Sun Jan 23, 2011 1:31 am

Hello everyone...

I have successfully created a UIWebView on a card in my stack. The URL loads into the control and is fully navigable in the IDE and device (iPad). Yeah! I used the example included with LiveCode.

The problem is, I have a button at the top of the card that is set to go to another card. It doesn't. The card with the web view just sits there... still navigable.

Has anyone experienced this? If so, what could I be doing wrong?

The card has a top margin of 36 pixels where I have placed my button to return to another card. I've checked the script in the button, and it works in the IDE, but not the simulator or device. The button even highlights every time it is clicked... message blocked?

The web view starts 36 pixels from the top and occupies the remaining screen area.

Is this enough info? Can anyone help?

Thanks!

:Todd

bendangelo
Posts: 10
Joined: Wed Nov 17, 2010 5:42 pm

Re: Can't close card with UIWebView in it

Post by bendangelo » Sun Jan 23, 2011 5:23 am

HI
you have to delete your control first, before to go to an other card


Regards

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Re: Can't close card with UIWebView in it

Post by ctflatt » Sun Jan 23, 2011 11:05 am

Thanks,bendangelo.

I had iphoneControlDelete sBrowserId command in the close script of the card, but I ended up moving it to the button script.

I guess that makes sense. It's working now.

I really appreciate the guidance.

:Todd

Post Reply

Return to “iOS Deployment”