【问题标题】:TTThumbsViewController not show thumbnails when using stylesheet.TTThumbsViewController 在使用样式表时不显示缩略图。
【发布时间】:2010-12-03 13:30:32
【问题描述】:

如果我使用全局样式表 ([TTStyleSheet setGlobalStyleSheet:[[[StyleSheet alloc] init] autorelease]];),我在 TTThumbsViewController 中看不到任何缩略图。

我为TTThumbsViewController指定了这些样式:

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

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

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

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

这是来自TTControl演示应用的截图:

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

【问题讨论】:

  • 我刚刚编辑了我的 TTCatalog 示例应用程序以使用我的 TTDefaultStyleSheet 类,我没有任何问题。请参阅cl.ly/75vm 您在哪里设置样式(在哪个文件中)?也许你只需要升级到 Three20 的最新版本。

标签: iphone objective-c three20 ttthumbsviewcontroller


【解决方案1】:

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

Three20 Stylesheets iPhone Tutorial

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-11
    • 2011-05-07
    • 2013-01-29
    • 1970-01-01
    • 1970-01-01
    • 2017-08-19
    • 2010-09-06
    • 2014-03-23
    相关资源
    最近更新 更多