Permalink
Browse files

Update TPKeyboardAvoidingTableView.m

- Added an initWithFrame:(CGRect)frame style:(UITableViewStyle)style to allow for tableviews with a style
  • Loading branch information...
killerham committed Jul 30, 2012
1 parent a3a1ac8 commit 798cf18ca37134cad3f7d4707b48782eb8bd8755
Showing with 6 additions and 0 deletions.
  1. +6 −0 TPKeyboardAvoidingTableView.m
@@ -29,6 +29,12 @@ -(id)initWithFrame:(CGRect)frame {
return self;
}
+-(id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
+ if ( !(self = [super initWithFrame:frame style:style]) ) return nil;
+ [self setup];
+ return self;
+}
+
-(id)initWithCoder:(NSCoder *)aDecoder {
if ( !(self = [super initWithCoder:aDecoder]) ) return nil;
[self setup];

0 comments on commit 798cf18

Please sign in to comment.