Skip to content

Commit

Permalink
Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffla committed Oct 21, 2013
1 parent f93c317 commit 2a7fac1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MMSpreadsheetView.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "MMSpreadsheetView"
s.version = "0.0.2"
s.version = "0.0.3"
s.summary = "A light weight, easy-to-use spreadsheet-like view."
s.homepage = "https://github.com/mutualmobile/MMSpreadsheetView"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Jeff Lacey" => "[email protected]" }
s.source = { :git => "https://github.com/mutualmobile/MMSpreadsheetView.git", :tag => "0.0.2" }
s.source = { :git => "https://github.com/mutualmobile/MMSpreadsheetView.git", :tag => "0.0.3" }
s.platform = :ios, '6.0'
s.requires_arc = true
s.source_files = 'MMSpreadsheetView/*.{h,m}'
Expand Down
4 changes: 2 additions & 2 deletions MMSpreadsheetView/MMSpreadsheetView.m
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ - (void)setDataSource:(id<MMSpreadsheetViewDataSource>)dataSource {
NSInteger maxRows = [_dataSource numberOfRowsInSpreadsheetView:self];
NSInteger maxCols = [_dataSource numberOfColumnsInSpreadsheetView:self];

NSAssert(self.headerColumnCount & (self.headerColumnCount < maxCols), @"Invalid configuration: number of header columns must be less than (dataSource) numberOfColumnsInSpreadsheetView");
NSAssert(self.headerRowCount & (self.headerRowCount < maxRows), @"Invalid configuration: number of header rows must be less than (dataSource) numberOfRowsInSpreadsheetView");
NSAssert(self.headerColumnCount < maxCols, @"Invalid configuration: number of header columns must be less than (dataSource) numberOfColumnsInSpreadsheetView");
NSAssert(self.headerRowCount < maxRows, @"Invalid configuration: number of header rows must be less than (dataSource) numberOfRowsInSpreadsheetView");
}

- (void)initializeCollectionViewLayoutItemSize:(UICollectionView *)collectionView {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Official appledoc documentation can be found at [CocoaDocs](http://cocoadocs.org
You can install MMSpreadsheetView in your project by using [CocoaPods](https://github.com/cocoapods/cocoapods):

```Ruby
pod 'MMSpreadsheetView', '~> 0.0.2'
pod 'MMSpreadsheetView', '~> 0.0.3'
```

---
Expand Down

0 comments on commit 2a7fac1

Please sign in to comment.