Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature - Alternate Text for sharers #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zysoft
Copy link

@zysoft zysoft commented May 28, 2011

I've added new feature - alternate text for sharers. It works globally and doesn't require sharers code change, so it's transparent. It allows you setting custom text which will be shared if the give sharer is selected. Sharers are identified by their title (exactly as people see them in UIActionSheet which should be clear for users).
Examples updated.

Example right here:

    SHKItem *item = [SHKItem text:@"This is a text to share via ShareKit"];
    [item setAlternateText:@"This is a text to share via #ShareKit" toShareOn:@"Twitter"];
    [item setAlternateText:@"This is a text to share via Email" toShareOn:@"Email"];
    SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
    [actionSheet showFromToolbar:self.navigationController.toolbar];

Each sharer will get alternate text if it was set when getting "text" property of SHKItem. If no alternate text given, the property value is returned.

When it is needed. First of all - Twitter. Twitter uses markup which is useless for other places like Facebook and could look strange there. But allowing user create custom message for Twitter we simply solve the problem and bring more flexibility to awesome ShareKit.

…rnate text for each particular sharer. Feature added globally and doesn't require sharers code change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant