Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Prevent UITableView contentInset property from affecting its backgroundView?
  2. _backgroundImageView = [[UIImageView alloc] initWithFrame:backgroundRect];
  3. [_backgroundImageView setImage:...];
  4. [_backgroundImageView setContentMode:UIViewContentModeBottom];
  5. [self setBackgroundView:_backgroundImageView];
  6.        
  7. [_tableView setContentInset:UIEdgeInsetsMake([_topBarView frame].size.height, 0, 0, 0)];