Skip to content

Commit

Permalink
Improve support for UITableViewAutomaticDimension
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmoose committed Dec 28, 2016
1 parent 4138390 commit 1bd68bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 2 additions & 12 deletions TLIndexPathTools.podspec
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
Pod::Spec.new do |s|
s.name = "TLIndexPathTools"
s.version = "0.4.3"
s.version = "0.4.4"
s.summary = "TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views."
s.description = <<-DESC
TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views. Here are some of the awesome things TLIndexPathTools does:
* Organize data into sections with ease (now with blocks!)
* Calculate and perform animated batch updates (inserts, moves and deletions)
* Simplify data source and delegate methods via rich data model APIs
* Provide a simpler alternative to Core Data NSFetchedResultsController
* Provide base table view and collection view classes with advanced features
0.4.3
* #63 added modificationComparatorBlock functionality in tlindexpathcontroller
DESC
s.homepage = "http://tlindexpathtools.com"
s.license = { :type => "MIT" }
s.author = { "wtmoose" => "[email protected]" }
s.source = { :git => "https://github.com/wtmoose/TLIndexPathTools.git", :tag => '0.4.3' }
s.source = { :git => "https://github.com/wtmoose/TLIndexPathTools.git", :tag => '0.4.4' }
s.platform = :ios, '8.0'
s.ios.deployment_target = '8.0'
s.source_files = 'TLIndexPathTools/**/*.{h,m}'
Expand Down
2 changes: 2 additions & 0 deletions TLIndexPathTools/View Controllers/TLTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
// which dequeue cells with empty bounds. If we see empty bounds, then fall back
// (or perhaps forward) to self-sizing cells
return UITableViewAutomaticDimension;
} else if (tableView.rowHeight == UITableViewAutomaticDimension) {
return UITableViewAutomaticDimension;
} else {
return cell.bounds.size.height;
}
Expand Down

0 comments on commit 1bd68bc

Please sign in to comment.