Latest 0.1.1
Homepage https://github.com/snaill/ShareReader
License MIT
Platforms ios 8.0, requires ARC
Dependencies ShareOne, SVProgressHUD
Frameworks UIKit
Authors

CI Status
Version
License
Platform

ShareReader是由分享派提供内容展示的SDK,通过ShareReader,您可以将您创建的内容嵌入到您的APP中,适用于系统帮助、特性展示等场景。

Getting Started

  • 下载分享派
  • 通过分享派编辑您的内容
  • 使用pod ShareReader将ShareReader嵌入您的APP中
  • 您的APP中调用ShareReader显示您的内容

Installation

  • via CocoaPods
pod "ShareReader"
  • ShareReader基于ShareOne库,默认提供分享到微信/QQ的功能,您需要在AppDelegate.m中注册微信/QQ的APP ID
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [ShareOne registerWX:@"wx11111"];
    [ShareOne registerQQ:@"22222"];
  • 为完成分享功能,您还需要调用handle函数
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    return [ShareOne handleOpenURL:url];
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
    return [ShareOne handleOpenURL:url];
}
  • 您需要在需要显示内容的地方引用ShareReader的头文件
#import <ShareReader/ShareReader.h>
  • 最后调用ShareReader完成内容的展示,当然您需要提供您的内容ID,这个ID可以在分享派APP中找到:
    UIViewController * vc = [ShareReader readerWithID:@"P-xxxx-xxxx-xxxx-xxxx-xxxxxxx"];
    [self.navigationController pushViewController:vc animated:YES];

Requirements

  • iOS 8
  • ARC

License

ShareReader is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ShareReader",
    "version": "0.1.1",
    "summary": "sharepai.net Reader SDK.",
    "homepage": "https://github.com/snaill/ShareReader",
    "license": "MIT",
    "authors": {
        "snaill": "[email protected]"
    },
    "source": {
        "git": "https://github.com/snaill/ShareReader.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "pod_target_xcconfig": {
        "ENABLE_BITCODE": "NO"
    },
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/ShareReader.h",
    "frameworks": "UIKit",
    "dependencies": {
        "ShareOne": [],
        "SVProgressHUD": []
    }
}

Pin It on Pinterest

Share This