Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit eb51b5d

Browse files
committed
Update readme
1 parent 349ba3e commit eb51b5d

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

Readme.markdown

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SSPullToRefresh
22

3+
[![Version](https://img.shields.io/github/release/soffes/sspulltorefresh.svg)](https://github.com/soffes/sspulltorefresh/releases) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods compatible](https://img.shields.io/cocoapods/v/sspulltorefresh.svg)](https://cocoapods.org/pods/sspulltorefresh)
4+
35
There are dozens of pull to refresh views. I've never found one I'm happy with. I always end up customizing one, so I decided to write one that's highly customizable. You can just write your content view and forget about the actual pull to refresh details.
46

57
If you're using SSPullToRefresh in your application, add it to [the list](https://github.com/soffes/sspulltorefresh/wiki/Applications).
@@ -77,24 +79,19 @@ You may also optionally implement this method:
7779

7880
## Adding To Your Project
7981

80-
If you are using [CocoaPods](http://cocoapods.org) than just add next line to your `Podfile`:
82+
[Carthage](https://github.com/carthage/carthage) is the recommended way to install SSPullToRefresh. Add the following to your Cartfile:
8183

8284
``` ruby
83-
pod 'SSPullToRefresh'
85+
github "soffes/sspulltorefresh"
8486
```
8587

86-
Now run `pod install` to install the dependency.
87-
88-
### Manually
89-
90-
[Download](https://github.com/soffes/sspulltorefresh/zipball/master) the source files or add it as a [git submodule](http://schacon.github.com/git/user-manual.html#submodules). Here's how to add it as a submodule:
88+
You can also install with [CocoaPods](https://cocoapods.org):
9189

92-
$ cd YourProject
93-
$ git submodule add https://github.com/soffes/sspulltorefresh.git Vendor/SSPullToRefresh
94-
95-
Add all of the Objective-C files to your project.
90+
``` ruby
91+
pod 'SSPullToRefresh'
92+
```
9693

97-
SSPullToRefresh uses [Automatic Reference Counting (ARC)](http://clang.llvm.org/docs/AutomaticReferenceCounting.html). (I think [you should use ARC](http://sam.roon.io/automatic-reference-counting) by the way.) If your project doesn't use ARC, you will need to set the `-fobjc-arc` compiler flag on all of the SSPullToRefresh source files. To do this in Xcode, go to your active target and select the "Build Phases" tab. In the "Compiler Flags" column, set `-fobjc-arc` for each of the SSPullToRefresh source files.
94+
For manual installation, I recommend adding the project as a subproject to your project or workspace and adding the framework as a target dependency.
9895

9996

10097
## Thanks

0 commit comments

Comments
 (0)