UA-17470720-3

Jump to content


Photo
- - - - -

Theme search results table


  • Please log in to reply
2 replies to this topic

#1 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 12 June 2013 - 05:13 PM

i have a SCSearchViewController and trying to theme the table

i have tried

SCArrayOfObjectsModel *sectionObject = [[SCArrayOfObjectsModel alloc] ......];
sectionObject.theme = myTheme;
    
[myTheme styleObject:sectionObject.searchDisplayController.searchResultsTableView usingThemeStyle:@"UITableView"];

and 

[myTheme styleObject:sectionObject.searchDisplayController usingThemeStyle:@"UITableView"];

but the results table isnt apply any theme at all

 

any ideas?

Oz


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#2 Everett

Everett

    Ev

  • STV 5.0 Pro
  • PipPipPipPipPip
  • 191 posts
  • LocationMichigan
Reputation: 60
Outstanding

Posted 12 June 2013 - 06:24 PM

Hi Oz,

 

try this:

 

              //keep it around

 

        @property (nonatomic,strong) SCTheme *themefile;

 

 

        self.themefile = [[SCTheme alloc]initWithPath:@"themefile.sct"];

        [self.themefile styleObject:self.searchDisplayController.searchResultsTableView usingThemeStyle:@"searchCell"];

 

 

 

theme file example (note: in search table view you use rowHeight, not height):

 

searchCell

{

    rowHeight: 30;

    backgroundColor: brownColor;

    backgroundView: nil;

}

 

hope that works for you!

Ev



#3 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 12 June 2013 - 06:25 PM

ill try self.. and see if that works

 

//**edit

its basically what i am already doing.. but i did try to use the self.search.. and still its not theming


Edited by ozie, 12 June 2013 - 06:27 PM.

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users