Welcome, Guest
Username Password: Remember me

Custom footer view (or, change font and text colour of footer title)
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Custom footer view (or, change font and text colour of footer title)

Custom footer view (or, change font and text colour of footer title) 1 year, 8 months ago #1

Hi Tarek,

Is it possible to change the footer view? I'm thinking not in this version as you have a footerView variable in SCTableViewSection, but it just gets set to nil in the code.

My problem is that the text that I use in the footer needs to be white with a black 1 pixel drop shadow.

Here's the code I use to set a section header and footer views:

 
- (UILabel *)createSectionLabel {
UILabel *sortFieldLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, self.sortFieldTableView.bounds.size.width, 20)];
sortFieldLabel.textColor = [UIColor whiteColor];
sortFieldLabel.backgroundColor = [UIColor clearColor];
sortFieldLabel.shadowColor = [UIColor blackColor];
sortFieldLabel.shadowOffset = CGSizeMake(0.0, 1.0);
sortFieldLabel.font = [UIFont boldSystemFontOfSize:17.0];
sortFieldLabel.opaque = NO;
return [sortFieldLabel autorelease];
}
 


So I'd like to be able to set this in a footer and header view for a section.

Is that possible with Sensible Table View?

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com

Re: Custom footer view (or, change font and text colour of footer title) 1 year, 8 months ago #2

Oh silly me. I figured it out. Just set the headerView and the footerView of the section.

Sorry for bothering you.

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com
  • Page:
  • 1
Time to create page: 1.39 seconds