Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23583] iOS: on widget's controller WPATH doesn't work as expected

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionNeeds more info
Resolution Date2018-07-26T22:11:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsimageview, widget, wpath
ReporterMauro Piccotti
AssigneeUnknown
Created2016-01-04T17:48:15.000+0000
Updated2018-07-26T22:11:38.000+0000

Description

In a widget I used an ImageView with multiple images, loaded by WPATH. It worked until version 5.0.2. In my widget I have images "loading_x.png" inside assets/images. The widget is this one: https://github.com/apra-informatica/Ti.ImageGallery/blob/master/controllers/widget.js And the code: spinnerImages = [ WPATH('/images/loading_1.png'), WPATH('/images/loading_2.png'), WPATH('/images/loading_3.png'), ]; spinner = Ti.UI.createImageView({ 'backgroundColor' : 'transparent', 'width' : '64dp', 'height' : '64dp', 'images' : spinnerImages }); It writes: [ERROR] : couldn't load imageview image: /images/it.apra.tiimagegallery/loading_1.png at position: 0

Comments

  1. Sharif AbuDarda 2016-01-05

    Hello, Please provide a small sample code which generates the issue. We will try to regenerate in our environment, Also, provide detail steps to reproduce the issue. More info on the [WPATH](http://docs.appcelerator.com/platform/latest/#!/guide/WPATH%28%29_Example). Thanks.
  2. Mauro Piccotti 2016-01-05

    I'm trying to reproduce it in a empty project and empty widget but there it works... I'm confused, by the way it stopped to work in my project and I don't know why, perhaps something related with the bug in ScrollableView.views. I'll update this issue if I'll understand a little more. Thanks for the quick reply.
  3. Mauro Piccotti 2016-01-05

    I reproduced the bug in a empty project, you can clone it from my github repo: https://github.com/nonno/Ti.TestProject/tree/wpath-bug (you should click on the label) I don't know why but a removeAllChildren called on the container where I want to put my images causes the problem, look in widget.js and try to remove the comment.
  4. Chee Kiat Ng 2016-06-20

    Sorry [~pic], do you think you can include these in the tiapp.xml to see if helps?
       	<ios>
       		<enable-launch-screen-storyboard>false</enable-launch-screen-storyboard>
       		<use-app-thinning>false</use-app-thinning>
       

JSON Source