[TIMOB-1265] imageView.toBlob() returns null
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | blob, imageview, ios |
Reporter | David R. |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:48:05.000+0000 |
Updated | 2011-04-17T01:55:41.000+0000 |
Description
Titanium Mobile SDK 1.3.2, the ImageView.toBlob() function returns null (was working in 1.3.0).
var imageView = Ti.UI.createImageView({
width: 'auto',
height: 'auto'
});
imageView.addEventListener('load', function()
{
var blob = imageView.toBlob();
// ^^^^ is null
});
imageView.image = pUrl;
The problem is in 1.3.3 too
If I use the (deprecated) url property instead of the image property it works. I believe the problem is here at ln 85 of TiUIImageViewProxy.m ( http://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUIImageViewProxy.m)"> http://github.com/appcelerator/titanium_mobile/blob/master/iphone/C...:
Tested 1.6.0RC1 in KS (Base UI->Views->Image Views->Image Blob).
Incorrect test; tested independently of that (the KS test tests setting the image FROM a blob, not translating TO a blob - it's slightly misnamed).