Permalink
Browse files

avoid default striped background for grouped tableviews

and possible infinite recursion in constructors
  • Loading branch information...
1 parent 3b546c6 commit 2f9145727a585d6d49dd3d430344684b25c9a2fa @ettore committed Oct 5, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 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];

0 comments on commit 2f91457

Please sign in to comment.