Skip to content

Commit 2a7fac1

Browse files
committed
Fixes #6
1 parent f93c317 commit 2a7fac1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

MMSpreadsheetView.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = "MMSpreadsheetView"
3-
s.version = "0.0.2"
3+
s.version = "0.0.3"
44
s.summary = "A light weight, easy-to-use spreadsheet-like view."
55
s.homepage = "https://github.com/mutualmobile/MMSpreadsheetView"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }
77
s.author = { "Jeff Lacey" => "jeff.lacey@mutualmobile.com" }
8-
s.source = { :git => "https://github.com/mutualmobile/MMSpreadsheetView.git", :tag => "0.0.2" }
8+
s.source = { :git => "https://github.com/mutualmobile/MMSpreadsheetView.git", :tag => "0.0.3" }
99
s.platform = :ios, '6.0'
1010
s.requires_arc = true
1111
s.source_files = 'MMSpreadsheetView/*.{h,m}'

MMSpreadsheetView/MMSpreadsheetView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ - (void)setDataSource:(id<MMSpreadsheetViewDataSource>)dataSource {
415415
NSInteger maxRows = [_dataSource numberOfRowsInSpreadsheetView:self];
416416
NSInteger maxCols = [_dataSource numberOfColumnsInSpreadsheetView:self];
417417

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

422422
- (void)initializeCollectionViewLayoutItemSize:(UICollectionView *)collectionView {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Official appledoc documentation can be found at [CocoaDocs](http://cocoadocs.org
1818
You can install MMSpreadsheetView in your project by using [CocoaPods](https://github.com/cocoapods/cocoapods):
1919

2020
```Ruby
21-
pod 'MMSpreadsheetView', '~> 0.0.2'
21+
pod 'MMSpreadsheetView', '~> 0.0.3'
2222
```
2323

2424
---

0 commit comments

Comments
 (0)