imageview_ex
imageview_ex copied to clipboard
Doesn't work second time
Hi mate,
Just tried the module and it worked like charm in the example app the first time, but then started to show the screen like this: https://skitch.com/spyromus/8sknk/imageview-ex
As you can see, the image is stretched to fill like in the usual ImageView component. Something weird is going on.
Cheers.
I think it has something to do with internal Titanium image cache. If I change the URL slightly (add an innocent "?a" at the end), all three views appear as empty, then load their images and show them correctly. Upon restart, all three appear immediately, but stretched in the same way.
Any words of wisdom? :)
I've moved the extended ImageView class to my TiUIEx project and made a few changes to get it to run properly on the 2.0.1 SDK -- can you try that module instead and let me know if you get the same results?
Can you please put a built version in Downloads? I have trouble building it with the error:
[DEBUG] ImportError: cannot import name ensure_dev_path
(I'm using Ti 1.8.2, btw)
- Aleksey
On Friday, April 27, 2012 at 17:34 , Paul Mietz Egli wrote:
I've moved the extended ImageView class to my TiUIEx project and made a few changes to get it to run properly on the 2.0.1 SDK -- can you try that module instead and let me know if you get the same results?
Reply to this email directly or view it on GitHub: https://github.com/pegli/imageview_ex/issues/1#issuecomment-5382640
You're getting the build error because the build script that is checked in to the TiUIEx project only works for SDK 2.0 and later. I've added a prebuilt version for 1.8.2 and a new build script that will work for that version of the SDK.
Thanks! I tried using it, but it says:
[ERROR] Script Error = Couldn't find module: com.obscure.tiuiex
Tripple-checked that I updated tiapp.xml with this:
<modules>
<module platform="iphone" version="1.0">com.obscure.tiuiex</module>
</modules>
and placed the module into the modules directory in Library/App Support/Titanium
.
That's actually what I've got previously by building it with the build.py script from my other 1.8.2 extension. Thought I've done something wrong, but it looks like the API has changed or something.
Try changing tiapp.xml to read:
<modules>
<module platform="iphone" version="1.0">com.obscure.TiUIEx</module>
</modules>
I'm pretty sure the module name is case-sensitive.