Page 1 of 1
Can't get images to display under iOS
Posted: Sat Oct 31, 2015 5:03 am
by codeshifter
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.
Re: Can't get images to display under iOS
Posted: Sat Oct 31, 2015 2:56 pm
by Klaus
Hi coeshifter,
1. welcome to the forum!
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
Re: Can't get images to display under iOS
Posted: Sat Oct 31, 2015 6:56 pm
by codeshifter
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.
Re: Can't get images to display under iOS
Posted: Sat Oct 31, 2015 7:04 pm
by codeshifter
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?
Re: Can't get images to display under iOS
Posted: Sat Oct 31, 2015 7:13 pm
by LCNeil
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
--
Re: Can't get images to display under iOS
Posted: Sat Oct 31, 2015 9:58 pm
by codeshifter
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"