Update README

This commit is contained in:
zekunyan
2015-11-06 11:04:29 +08:00
parent fc465ca853
commit 3579a41fa2

View File

@@ -13,13 +13,24 @@ It appears above all other elements on screen and only one can be displayed at a
It disappears after a timeout or after user click the action button.
# Installation
The recommended way is to use CocoaPods.
```
### CocoaPods
You can use [Cocoapods](http://cocoapods.org) to install `TTGSnackbar` by adding it to your `Podfile`:
```ruby
platform :ios, '8.0'
use_frameworks!
pod 'TTGSnackbar'
```
pod "TTGSnackbar"
```
### Carthage
You can use [Carthage](https://github.com/Carthage/Carthage) to install `TTGSnackbar` by adding it to your `Cartfile`:
```
github "zekunyan/TTGSnackbar"
```
### Import
And you need to import the module.
```
import TTGSnackbar