ttthumbsviewcontroller

How to change the size of the grid of TTThumbsViewController

孤街浪徒 提交于 2019-12-22 18:05:08
问题 I'm using the Three20 Photo Gallery and wondered if it's possible to have two different grid sizes in two different galleries. So in Gallery one I use the standard size (up to 4x4 thumbs) and in the other I only want a 2x2 gallery size. Is that possible and if yes how (I suppose subclassing comes into play)? I would really appreciate some code samples. Thanks a lot. 回答1: I did the same thing and my solution was like this 1, Extend TTThumbsDataSource and override (NSInteger)columnCount { //

How to change the size of the grid of TTThumbsViewController

我只是一个虾纸丫 提交于 2019-12-06 11:13:47
I'm using the Three20 Photo Gallery and wondered if it's possible to have two different grid sizes in two different galleries. So in Gallery one I use the standard size (up to 4x4 thumbs) and in the other I only want a 2x2 gallery size. Is that possible and if yes how (I suppose subclassing comes into play)? I would really appreciate some code samples. Thanks a lot. I did the same thing and my solution was like this 1, Extend TTThumbsDataSource and override (NSInteger)columnCount { // CGFloat width = TTScreenBounds().size.width; // return round((width - kThumbSpacing*2) / (kThumbSize