TTThumbsViewController does not show thumbnails when using a stylesheet.

If I use the global stylesheet ( [TTStyleSheet setGlobalStyleSheet:[[[StyleSheet alloc] init] autorelease]];), I cannot see the thumbnails in TTThumbsViewController.

I indicate these styles for TTThumbsViewController:

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

If I set thumbnailBackgroundColorto grayColor, I see gray rectangles in the controller, but no images loaded.

If I comment on the use of the global stylesheet, I see the thumbnails correctly.

I tried using the stylesheet in a demo application TTControland TTThumbsViewControllerbehaving the same way as in my application.

Here is a screenshot from the demo application TTControl:

enter image description here

I hope I'm not mistaken. Can anyone understand why this is happening? Thank you Bye

+3
1

, TTStyleSheet:

Th20 Th20

0

Source: https://habr.com/ru/post/1778310/


All Articles