CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

YLLongTapShare 0.1

YLLongTapShare 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Yong Li.



Long Tap Sharing control for iOS. Inspired by this design.

How to use it

For using this control, it's very easy, after adding source file to your project, using following code to enable the long tap share function.

[self.view addShareItem:[YLShareItem itemWithIcon:[UIImage imageNamed:@"facebook"] andTitle:@"Facebook"]];
[self.view addShareItem:[YLShareItem itemWithIcon:[UIImage imageNamed:@"pinterest"] andTitle:@"Pinterest"]];
[self.view addShareItem:[YLShareItem itemWithIcon:[UIImage imageNamed:@"instagram"] andTitle:@"Instagram"]];

It support YLLongTapShareView and UIButton. The default color of this control is white, for customizing the color apperance, you can implmenet following delegate function:

- (UIColor*)colorOfShareView {
    return [UIColor redColor];
}

Welcome pull request

With your help, we can continually improve this control.

Thanks.