[TIMOB-128] API - ImageView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:52:05.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 0.7.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Nolan Wright |
| Assignee | Blain Hamon |
| Created | 2011-04-15T02:24:04.000+0000 |
| Updated | 2011-04-17T01:52:05.000+0000 |
Description
Purpose
Provide an ImageView for viewing images
API Spec
// create view using local resource
var view1 = Titanium.UI.createImageView({url:'my.png'});
// create view using file resource
var view2 = Titanium.UI.createImageView({url:'file://my.png'});
// dynamically set the image value
view1.setURL('my.png');
// add view to window
Titanium.UI.currentWindow.addView(view1);
// add view to window
Titanium.UI.currentWindow.addView(view2);
// show view
Titanium.UI.currentWindow.showView(view1);
No comments