Latest 0.5
Homepage https://github.com/keleyundou/TTSocialModule
License MIT
Platforms ios 8.0, requires ARC
Authors

简单封装第三方平台SDK,目前仅支持分享功能。

包含的SDK:微信、微博

Feature

支持分享类型:

  • [x] 文本
  • [x] 图文
  • [x] 网页
  • [x] 小程序

Usage

  • Step 1

注册第三方平台appKey

#import "TTSocialManager.h"

[[TTSocialManager defaultManager] setPlatform:TTSocialPlatformTypeWeChatSession appKey:WECHAT_APPKEY redirectURL:nil];
  • Step 2

分享到第三方平台

TTSocialMessageObject *messageObject = [TTSocialMessageObject new];
messageObject.text = @"分享文本";

[[TTSocialManager defaultManager] sharedToPlatform:TTSocialPlatformTypeWeChatSession messageObject:messageObject currentViewController:nil completionHandler:^(id  _Nullable data, NSError * _Nullable error) {
    NSLog(@"%@::分享后的回调!", NSStringFromClass(self.class));
}];

Architecture

TTSocialModule

Latest podspec

{
    "name": "TTSocialModule",
    "version": "0.5",
    "summary": "u7b80u5355u5c01u88c5u7b2cu4e09u65b9u5e73u53f0u7684u5206u4eabu529fu80fd",
    "description": "u5c01u88c5u300cu5faeu4fe1u300du300cu5faeu535au300du7b49u7b2cu4e09u65b9u5e73u53f0SDKuff0cu76eeu524du652fu6301u5206u4eabu529fu80fdu3002",
    "homepage": "https://github.com/keleyundou/TTSocialModule",
    "license": "MIT",
    "authors": {
        "ColaBean": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/keleyundou/TTSocialModule.git",
        "tag": "0.5"
    },
    "requires_arc": true,
    "static_framework": true,
    "subspecs": [
        {
            "name": "Base",
            "source_files": [
                "TTSocialModule/TT{Behavior,SocialDefine}.h",
                "TTSocialModule/TT{SocialMessageObject,SocialUtil,SocialResponse}.{h,m}"
            ],
            "public_header_files": "TTSocialModule/TT{Behavior,SocialDefine,SocialMessageObject,SocialResponse}.h"
        },
        {
            "name": "Shared",
            "source_files": "TTSocialModule/Shared",
            "private_header_files": "TTSocialModule/Shared/*.h",
            "dependencies": {
                "TTSocialModule/Base": [],
                "WechatOpenSDK": [
                    "~> 1.8.4"
                ],
                "Weibo_SDK": [
                    "~> 3.2.3"
                ]
            }
        },
        {
            "name": "Handler",
            "source_files": "TTSocialModule/Handler",
            "private_header_files": "TTSocialModule/Handler/*.h",
            "dependencies": {
                "TTSocialModule/Base": []
            },
            "ios": {
                "dependencies": {
                    "TTSocialModule/Shared": []
                }
            }
        },
        {
            "name": "Manager",
            "source_files": "TTSocialModule/TTSocialManager.{h,m}",
            "public_header_files": "TTSocialModule/TTSocialManager.h",
            "dependencies": {
                "TTSocialModule/Base": []
            },
            "ios": {
                "dependencies": {
                    "TTSocialModule/Handler": []
                }
            }
        }
    ]
}

Pin It on Pinterest

Share This