pec1985 / TiSMSView

Expandable Text Area Module - iOS - Titanium
Other
60 stars 18 forks source link

how to add a image to the textArea.recieveMessage() #59

Closed samueleastdev closed 11 years ago

samueleastdev commented 12 years ago

is it possible to add a image to the receive message function?

textArea.recieveMessage("I want to pass a image in here that has been pull from database");

i have been trying the following

var image = Ti.UI.createImageView({
image:'http://wwwimages.adobe.com/www.adobe.com/downloadcenter/images/shockwave/shockwave_128.jpg'
});
textArea.recieveMessage(image.toBlob());

any suggestions thanks

pec1985 commented 12 years ago

It should work: https://github.com/pec1985/ExpandableTextArea/blob/master/example/app.js#L94

pec1985 commented 11 years ago

Closing issue, no response