-
Notifications
You must be signed in to change notification settings - Fork 18
/
README
42 lines (27 loc) · 1.22 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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:
<modules>
<module version="1.0">ti.smsview</module>
</modules>
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