Can't get images to display under iOS

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
codeshifter
Posts: 6
Joined: Sat Oct 24, 2015 1:51 pm

Can't get images to display under iOS

Post by codeshifter » Sat Oct 31, 2015 5:03 am

The answer must be embarassingly simple, but I'm pointing an image control to a non-local URL, but the image will not display under iOS. The images display fine in the IDE and on a desktop build. Under iOS, they will not display. I even resorted to a simplified test project with only what was needed to test the functionality. I still can't get it to work. According to the LiveCode Dictionary, this should be valid everywhere (right?):

Code: Select all

on mouseUp
set the filename of image "Image" to "URL here"
end mouseUp
(LiveCode forums won't let me post it with the actual URL in the code.)

I'm using LC 7.1.1(RC2) with Xcode 7.1
I've been searching for an answer for many hours, but have found nothing.

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

Re: Can't get images to display under iOS

Post by Klaus » Sat Oct 31, 2015 2:56 pm

Hi coeshifter,

1. welcome to the forum! :D
2. Ad this line, maybe this will give you a hint on what goes wrong:

Code: Select all

on mouseUp
  set the filename of image "Image" to "URL here"
  answer the result
  ## Will be empty on success!
end mouseUp
Best

Klaus

codeshifter
Posts: 6
Joined: Sat Oct 24, 2015 1:51 pm

Re: Can't get images to display under iOS

Post by codeshifter » Sat Oct 31, 2015 6:56 pm

Hello Klaus and thank you for the welcome and the reply.

Yes, the answer is empty, which makes sense as it all works as a desktop build.

Thanks again.

codeshifter
Posts: 6
Joined: Sat Oct 24, 2015 1:51 pm

Re: Can't get images to display under iOS

Post by codeshifter » Sat Oct 31, 2015 7:04 pm

Perhaps this is a clue:
When running an app in the iOS Simulator, the GUI elements look like they are from Windows 3.1.
Could I have an iOS SDK problem outside of LiveCode?

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Can't get images to display under iOS

Post by LCNeil » Sat Oct 31, 2015 7:13 pm

Hi All,

There is a problem with fetching URLs on iOS 9.* devices / simulators at the moment. The applies to both URL calls and iOS native browser commands.

More information on this can be found here-

http://forums.livecode.com/viewtopic.ph ... 72#p133772

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

codeshifter
Posts: 6
Joined: Sat Oct 24, 2015 1:51 pm

Re: Can't get images to display under iOS

Post by codeshifter » Sat Oct 31, 2015 9:58 pm

Installing Xcode 6.4 seems to work around this problem. See the thread linked to above by LCNeil titled "IOS 9.1 internet connection problem with LiveCode project"

Post Reply