We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a3080 commit d891e1eCopy full SHA for d891e1e
1 file changed
TPKeyboardAvoiding/TPKeyboardAvoidingTableView.m
@@ -48,10 +48,12 @@ -(void)dealloc {
48
49
-(BOOL)hasAutomaticKeyboardAvoidingBehaviour {
50
#if defined(__IPHONE_8_3)
51
- // Apps built using the iOS 8.3 SDK (probably: older SDKs not tested) seem to handle keyboard
52
- // avoiding automatically. This doesn't seem to be documented anywhere by Apple. Note: this only
53
- // applies to UITableView.
54
- return YES;
+ if ( [self.delegate isKindOfClass:[UITableViewController class]] ) {
+ // Theory: Apps built using the iOS 8.3 SDK (probably: older SDKs not tested) seem to handle keyboard
+ // avoiding automatically with UITableViewController. This doesn't seem to be documented anywhere
+ // by Apple, so results obtained only empirically.
55
+ return YES;
56
+ }
57
#endif
58
59
return NO;
0 commit comments