Skip to content

Commit

Permalink
support CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
hongxinhope committed Mar 12, 2016
1 parent eca254c commit 02729f5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Example/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3</string>
<string>4</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ TBEmptyDataSet can be composed of an image, a title and a description, or you ca

##How To Get Started
###Carthage
Specify "TBEmptyDataSet" in your Cartfile:
Specify "TBEmptyDataSet" in your ```Cartfile```:
```ogdl
github "teambition/TBEmptyDataSet"
```

###CocoaPods
Specify "TBEmptyDataSet" in your ```Podfile```:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'TBEmptyDataSet'
```

###Usage
##### 1. Assign the data source and delegate
```swift
Expand Down
19 changes: 19 additions & 0 deletions TBEmptyDataSet.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Pod::Spec.new do |s|

s.name = "TBEmptyDataSet"
s.version = "1.3"
s.summary = "An extension of UITableView/UICollectionView's super class, it will display a placeholder when the data is empty."

s.homepage = "https://github.com/teambition/TBEmptyDataSet"
s.license = { :type => "MIT", :file => "LICENSE.md" }
s.author = "Xin Hong"

s.source = { :git => "https://github.com/teambition/TBEmptyDataSet.git", :tag => s.version.to_s }
s.source_files = "TBEmptyDataSet/*.swift"

s.platform = :ios, "8.0"
s.requires_arc = true

s.frameworks = "Foundation", "UIKit"

end
2 changes: 1 addition & 1 deletion TBEmptyDataSet/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 02729f5

Please sign in to comment.