3

如果我使用全局样式表 ( [TTStyleSheet setGlobalStyleSheet:[[[StyleSheet alloc] init] autorelease]];),则在TTThumbsViewController.

我指定这些样式TTThumbsViewController

- (UIColor *)navigationBarTintColor;
- (UIColor *)backgroundColor;
- (UIColor *)tablePlainBackgroundColor;
- (UIColor *)tableHeaderTintColor;
- (UIColor *)thumbnailBackgroundColor;

如果我设置thumbnailBackgroundColor为,grayColor我会在控制器中看到灰色矩形,但没有下载图像。

如果我评论全局样式表的使用,我会正确看到缩略图。

TTControl我尝试在演示应用程序中使用样式表,其TTThumbsViewController行为与我的应用程序相同。

这是TTControl演示应用程序的屏幕截图:

在此处输入图像描述

我希望我没有做错什么。任何人都可以知道为什么会这样吗?谢谢。再见。

4

1 回答 1

0

请参阅以下教程以帮助您TTStyleSheet正确实施:

Three20 样式表 iPhone 教程

于 2011-08-26T00:07:05.883 回答