Browse files

Update TPKeyboardAvoidingTableView.m

Added support for initWithFrame: style: to UITableView (the current code will otherwise fail on attempts to create grouped tables, or to create the default table style but using the full init syntax).

NB Grouped tables whilst now supported aren't displayed optimally - they probably need to account for gaps between sections and section headers.
  • Loading branch information...
md0u80c9 committed Mar 20, 2013
1 parent 02f1a1d commit c2b40c74561c13e02042da05cedc36091e0c5837
Showing with 4 additions and 0 deletions.
  1. +4 −0 TPKeyboardAvoidingTableView.m
@@ -39,6 +39,10 @@ -(id)initWithFrame:(CGRect)frame {
return self;
+-(id)initWithFrame:(CGRect)frame style:(UITableViewStyle)withStyle {
+ if ( !(self = [super initWithFrame:frame style:withStyle]) ) return nil;
+ [self setup];
+return self;
-(void)awakeFromNib {
[self setup];

0 comments on commit c2b40c7

Please sign in to comment.