一个iOS的社交平台分享管理器:ShareManager
                 jopen
                 10年前
            
                    一个iOS的SNS分享管理器:ShareManager。支持非死book, 推ter, QQ 和微信。支持单个和批量分享至社交平台。
PreView
How To Integrate to Your Project
-   
Install via cocoapods
platform :ios, '7.0' target 'Your_Target' do pod 'ShareManager', :git => 'https://github.com/imjerrybao/ShareManager.git' end
 -   
AppDelegate add below code
 
#import "ShareManager.h"    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {      // Override point for customization after application launch.        [self initSharePlatform];        return YES;  }    - (void)initSharePlatform  {  # Replace the share platforms app key, secret and redirect uri to yours        [[ShareManager sharedManager] initTencentQQWithAppKey:kQzoneKey appSecret:kQzoneSecret];      [[ShareManager sharedManager] initWexinWithAppKey:kWeixinAppKey appSecret:kWeixinAppSecret];      [[ShareManager sharedManager] initWeiboWithAppKey:kWeiboAppKey appSecret:kWeiboSecret redirectUri:kWeiboRedirectUri];      [[ShareManager sharedManager] init推terWithAppKey:k推terAppKey appSecret:k推terAppSecret redirectUri:k推terRedirectUri];      [[ShareManager sharedManager] init非死bookWithAppKey:k非死bookAppKey appSecret:k非死bookAppSecret redirectUri:k非死bookRedirectUri];  }    - (BOOL)application:(UIApplication *)application  handleOpenURL:(NSURL *)url  {      return [[ShareManager sharedManager] handleOpenURL:url];  }    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation  {      return [[ShareManager sharedManager] handleOpenURL:url];  }
