一个iOS的社交平台分享管理器:ShareManager

jopen 9年前

一个iOS的SNS分享管理器:ShareManager。支持非死book, 推ter, QQ 和微信。支持单个和批量分享至社交平台。

PreView

Drawing Drawing

How To Integrate to Your Project

  1. Install via cocoapods

    platform :ios, '7.0'    target 'Your_Target' do    pod 'ShareManager', :git => 'https://github.com/imjerrybao/ShareManager.git'    end
  2. 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];  }

项目主页:http://www.open-open.com/lib/view/home/1439299990489