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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值