Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid default striped background for grouped tableviews

and possible infinite recursion in constructors
  • Loading branch information...
commit 2f9145727a585d6d49dd3d430344684b25c9a2fa 1 parent 3b546c6
ettore authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 CLCGTVVC.m
8 CLCGTVVC.m
View
@@ -31,9 +31,10 @@ -(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-(id)initWithStyle:(UITableViewStyle)style
{
- self = [self initWithNibName:nil bundle:nil];
+ self = [super initWithNibName:nil bundle:nil];
if (self) {
mStyle = style;
+ mLoadState = CLCG_NOT_LOADED;
}
return self;
}
@@ -67,7 +68,10 @@ -(void)loadView
expandmask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
[v setAutoresizingMask:expandmask];
[tv setAutoresizingMask:expandmask];
-
+
+ // necessary to avoid default striped background for grouped tableviews
+ [tv setBackgroundView:nil];
+
// build view hierarchy
[self setView:v];
[self setTableView:tv];
Please sign in to comment.
Something went wrong with that request. Please try again.