I want to add share content functionality in my iOS app. I am developing an app in titanium for iPhone. I want to add a share button that when a user clicks will open a dialog box contains many different option like Facebook, twitter, email , and print.
Asked
Active
Viewed 1,490 times
2 Answers
1
Unless this has been included in the Appcelerator Framework, you are going to have to write a module

Community
- 1
- 1

Aaron Saunders
- 33,180
- 5
- 60
- 80
0
There is a module for this that wraps the Social.framework on iOS. Ive used it in my own apps and its quite nice. Find it here.
And a small example of how to make it work.
var Social = require('com.0x82.social');
Social.showActivityItems({
activityItems : ["http://stackoverflow.com"]
});
Social.addEventListener('activityWindowClosed', function(e) {
if (e.completed) {
alert('Shared successfully');
}
});

Josiah Hester
- 6,065
- 1
- 24
- 37