pec1985 / TiSMSView

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

Most of the magic code taken from: http://www.hanspinckaers.com/multi-line-uitextview-similar-to-sms

Please, for a demo, look at this: http://www.screenr.com/wVCs

INSTALL THE MODULE FROM SOURCE

  1. Run build.py which creates your distribution
  2. cd to /Library/Application Support/Titanium
  3. copy this zip file into the folder of your Titanium SDK

INSTALLING THE MODULE FROM THE MARKETPLACE

  1. Copy the zip file from the marketplace download and place it in the root of your project or the folder of your Titanium SDK
  2. Follow the next step

REGISTER THE MODULE

Register the module with your application by editing tiapp.xml and adding your module. Example:

ti.smsview

When you run your project, the compiler will know automatically compile in the module dependencies and copy appropriate image assets into the application.

USING YOUR MODULE IN CODE

To use your module in code, you will need to require it.

For example,

Titanium.SMSView = require('ti.smsview');
var smsView = Ti.SMSView.createView();

Take a look in the documentation folder for details