Iphone TTThumbsViewController在使用样式表时不显示缩略图。
如果我使用全局样式表(Iphone TTThumbsViewController在使用样式表时不显示缩略图。,iphone,objective-c,three20,ttthumbsviewcontroller,Iphone,Objective C,Three20,Ttthumbsviewcontroller,如果我使用全局样式表([TTStyleSheet setGlobalStyleSheet:[[[stylesheet alloc]init]autorelease]];),我在TTThumbsViewController中看不到任何缩略图 我为TTThumbsViewController指定以下样式: - (UIColor *)navigationBarTintColor; - (UIColor *)backgroundColor; - (UIColor *)tablePlainBackgrou
[TTStyleSheet setGlobalStyleSheet:[[[stylesheet alloc]init]autorelease]];
),我在TTThumbsViewController
中看不到任何缩略图
我为TTThumbsViewController
指定以下样式:
- (UIColor *)navigationBarTintColor;
- (UIColor *)backgroundColor;
- (UIColor *)tablePlainBackgroundColor;
- (UIColor *)tableHeaderTintColor;
- (UIColor *)thumbnailBackgroundColor;
如果我将thumbnailBackgroundColor
设置为grayColor
我会在控制器中看到灰色矩形,但没有下载的图像
如果我评论全局样式表的使用,我会正确地看到缩略图
我尝试在TTControl
demo应用程序中使用样式表,并且TTThumbsViewController
的行为与我的应用程序中相同
以下是TTControl
demo应用程序的屏幕截图:
我希望我没有做错什么。有人知道为什么会发生这种事吗?
谢谢再见。请参阅以下教程,以帮助您正确实现
TTStyleSheet
:
我刚刚编辑了我的TTCatalog示例应用程序以使用我的TTDefaultStyleSheet类,没有任何问题。查看您在哪里设置样式(在哪个文件中)?也许你只需要升级到Three20的最新版本。