Latest | 0.1.9 |
---|---|
Homepage | https://github.com/ablettchen/ATShare |
License | MIT |
Platforms | ios 8.0, requires ARC |
Dependencies | ATCategories, UMCCommon, UMCShare/Social/ReducedWeChat, UMCShare/Social/ReducedQQ, UMCShare/Social/ReducedSina |
Authors |
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
#import <ATShare/ATShare.h>
ATShare *share = [ATShare new];
[share addSocial:[ATSocialWechat new]];
[share addSocial:[ATSocialWechatTimeline new]];
ATShareResWeb *res = [ATShareResWeb new];
res.title = @"ATShare";
res.desc = @"Social share";
res.thumb = [UIImage imageNamed:@"avatar"];
res.urlString = @"https://github.com/ablettchen/ATShare";
ATSocialWechat *wechat = [ATSocialWechat new];
wechat.appKey = @"xxxxxx";
wechat.appSecret = @"xxxxxx";
wechat.redirectURL = @"http://mobile.umeng.com/social";
[share shareTo:wechat res:res finished:^(NSError * _Nullable error, id<ATSocialProtocol> _Nonnull social) {
NSString *msg = [NSString stringWithFormat:@"%@", error?error.localizedDescription:@"succeed"];
[self.view makeToast:msg];
}];
Requirements
Installation
ATShare is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'ATShare'
Author
ablett, [email protected]
License
ATShare is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "ATShare", "version": "0.1.9", "summary": "Social share", "homepage": "https://github.com/ablettchen/ATShare", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "ablett": "[email protected]" }, "source": { "git": "https://github.com/ablettchen/ATShare.git", "tag": "0.1.9" }, "social_media_url": "https://twitter.com/ablettchen", "platforms": { "ios": "8.0" }, "source_files": "ATShare/**/*.{h,m}", "resources": "ATShare/ATShare.bundle", "requires_arc": true, "dependencies": { "ATCategories": [], "UMCCommon": [], "UMCShare/Social/ReducedWeChat": [], "UMCShare/Social/ReducedQQ": [], "UMCShare/Social/ReducedSina": [] } }
Wed, 05 Jun 2019 10:39:05 +0000