diff --git a/MMSpreadsheetView.podspec b/MMSpreadsheetView.podspec index 8797ae3..524b3f4 100644 --- a/MMSpreadsheetView.podspec +++ b/MMSpreadsheetView.podspec @@ -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" => "jeff.lacey@mutualmobile.com" } - 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}' diff --git a/MMSpreadsheetView/MMSpreadsheetView.m b/MMSpreadsheetView/MMSpreadsheetView.m index 970c164..8506b53 100644 --- a/MMSpreadsheetView/MMSpreadsheetView.m +++ b/MMSpreadsheetView/MMSpreadsheetView.m @@ -415,8 +415,8 @@ - (void)setDataSource:(id)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 { diff --git a/README.md b/README.md index cdfb7f0..575904a 100755 --- a/README.md +++ b/README.md @@ -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' ``` ---