Permalink
Browse files

iOS 5 UITableView seems to not be doing keyboard avoiding any more: R…

…emoved exception.
  • Loading branch information...
1 parent 709b08c commit aae140e5be46f95cbdb349f9622997ccd3bc9983 @michaeltyson committed Mar 25, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −14 TPKeyboardAvoidingTableView.m
@@ -25,26 +25,12 @@ - (void)setup {
-(id)initWithFrame:(CGRect)frame {
if ( !(self = [super initWithFrame:frame]) ) return nil;
-
- if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 4.3 ) {
- // Not required above iOS 4.3! Just return an ordinary table view
- [self release];
- return (self = [[UITableView alloc] initWithFrame:frame]);
- }
-
[self setup];
return self;
}
-(id)initWithCoder:(NSCoder *)aDecoder {
if ( !(self = [super initWithCoder:aDecoder]) ) return nil;
-
- if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 4.3 ) {
- // Not required above iOS 4.3! Just return an ordinary table view
- [self release];
- return (self = [[UITableView alloc] initWithCoder:aDecoder]);
- }
-
[self setup];
return self;
}

0 comments on commit aae140e

Please sign in to comment.