Iphone 在TTThumbsViewController中更改拇指大小
有人知道有没有办法在three20框架中的TTThumbsViewController中增加网格上图像的大小 谢谢如果您使用的是TTThumbsViewController,则必须编辑该文件 将kThumbSize更改为所需的大小,并将填充的kThumbnailRowHeight更改为该值+4 然后,在tableView:cell:willAppearAtIndexPath:中,设置: 因此拇指知道大小。如果使用TTThumbsViewController,则必须编辑该文件 将kThumbSize更改为所需的大小,并将填充的kThumbnailRowHeight更改为该值+4 然后,在tableView:cell:willAppearAtIndexPath:中,设置:Iphone 在TTThumbsViewController中更改拇指大小,iphone,three20,Iphone,Three20,有人知道有没有办法在three20框架中的TTThumbsViewController中增加网格上图像的大小 谢谢如果您使用的是TTThumbsViewController,则必须编辑该文件 将kThumbSize更改为所需的大小,并将填充的kThumbnailRowHeight更改为该值+4 然后,在tableView:cell:willAppearAtIndexPath:中,设置: 因此拇指知道大小。如果使用TTThumbsViewController,则必须编辑该文件 将kThumbSiz
因此拇指知道大小。另一种方法是创建TTThumbsDataSource类别 将下面的代码复制到ThumbnailDataSource.m文件中,并创建一个类似的headerfile。 在TTThumbsViewController子类中包含头文件。将大小设置为所需的大小
#import <Three20/Three20.h>
@implementation TTThumbsDataSource(ThumbnailDataSource)
- (void) tableView: (UITableView*)tableView
cell: (UITableViewCell*)cell
willAppearAtIndexPath: (NSIndexPath*)indexPath {
if ([cell isKindOfClass:[TTThumbsTableViewCell class]]) {
TTThumbsTableViewCell* thumbsCell = (TTThumbsTableViewCell*)cell;
thumbsCell.delegate = _delegate;
thumbsCell.columnCount = [self columnCount];
thumbsCell.thumbSize = kThumbSize;
}
}
@end
另一种方法是创建TTThumbsDataSource的类别 将下面的代码复制到ThumbnailDataSource.m文件中,并创建一个类似的headerfile。 在TTThumbsViewController子类中包含头文件。将大小设置为所需的大小
#import <Three20/Three20.h>
@implementation TTThumbsDataSource(ThumbnailDataSource)
- (void) tableView: (UITableView*)tableView
cell: (UITableViewCell*)cell
willAppearAtIndexPath: (NSIndexPath*)indexPath {
if ([cell isKindOfClass:[TTThumbsTableViewCell class]]) {
TTThumbsTableViewCell* thumbsCell = (TTThumbsTableViewCell*)cell;
thumbsCell.delegate = _delegate;
thumbsCell.columnCount = [self columnCount];
thumbsCell.thumbSize = kThumbSize;
}
}
@end