REActivityViewController 施用 备忘

REActivityViewController 使用 备忘
REActivityViewController

Out of the box activities include:

Facebook
Twitter
VKontakte
Tumblr (using XAuth)
Message
Mail
Open in Safari
Save to Pocket
Send to Instapaper
Save to Readability
Save to Diigo
Save to Kippt
Save to Album
Open in Maps
Print
Copy
All activites are compatible with iOS 5.0.

Requirements
Xcode 4.5 or higher
Apple LLVM compiler
iOS 5.0 or higher
ARC

Demo
First, you need to install dependencies using CocoaPods package manager in the demo project:

$ pod install


After that, build and run the REActivityViewControllerExample project in Xcode to see REActivityViewController in action.

If you don't have CocoaPods installed, check section "Installation" below.

Installation
The recommended approach for installating REActivityViewController is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup


Edit your Podfile and add REActivityViewController:
$ edit Podfile
platform :ios, '5.0'
pod 'REActivityViewController', '~> 1.5.3'


Install into your Xcode project:
$ pod install


自动找依赖包,CocoaPods很好很强大!

Add #include "REActivityViewController.h" to the top of classes that will use it.

Manual installation

REActivityViewController needs to be linked with the following frameworks:

QuartzCore
AssetsLibrary
MessageUI
Twitter
The following framework must be added as optional (weak reference):
Social

加载Framework的时候要注意:
依赖包也需要添加额外的Framework,所以不要以为添加上述Framework后组件就可以正常使用了

需要添加的Framework还包括:
Accounts,Security,sqlite3,CoreLocation, AdSupport

Dependencies:

AFNetworking ~> 1.1
Facebook-iOS-SDK ~> 3.2
DEFacebookComposeViewController ~> 1.0.0
REComposeViewController ~> 2.0
PocketAPI ~> 1.0.2
SFHFKeychainUtils ~> 0.0.1
AFXAuthClient ~> 1.0.5