Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-128] API - ImageView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.7.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:24:04.000+0000
Updated2011-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);

Comments

No comments

JSON Source