ATShare 0.1.16

ATShare 0.1.16

ablettx 维护。



 
依赖项
ATCategories>= 0
UMCCommon>= 0
UMCShare/Social/ReducedWeChat>= 0
UMCShare/Social/ReducedQQ>= 0
UMCShare/Social/ReducedSina>= 0
 

ATShare 0.1.16

ATShare

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install

#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];
}];

要求

安装

ATShare 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'ATShare'

作者

ablett,[email protected]

许可协议

ATShare遵循MIT许可协议。请参阅LICENSE文件以获取更多信息。