NanoTech

No need to set auth dialog contentInset on iPad, there's lots of space.

@@ -89,12 +89,18 @@ static const NSUInteger kDomainSection = 1; @@ -89,12 +89,18 @@ static const NSUInteger kDomainSection = 1;
89 89
90 - (void)keyboardWillShow:(NSNotification *)notification 90 - (void)keyboardWillShow:(NSNotification *)notification
91 { 91 {
92 - NSValue *keyboardBoundsValue = [[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey]; 92 +#if __IPHONE_3_2 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
93 - CGRect keyboardBounds; 93 + if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
94 - [keyboardBoundsValue getValue:&keyboardBounds]; 94 +#endif
95 - UIEdgeInsets e = UIEdgeInsetsMake(0, 0, keyboardBounds.size.height, 0); 95 + NSValue *keyboardBoundsValue = [[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey];
96 - [[self tableView] setScrollIndicatorInsets:e]; 96 + CGRect keyboardBounds;
97 - [[self tableView] setContentInset:e]; 97 + [keyboardBoundsValue getValue:&keyboardBounds];
  98 + UIEdgeInsets e = UIEdgeInsetsMake(0, 0, keyboardBounds.size.height, 0);
  99 + [[self tableView] setScrollIndicatorInsets:e];
  100 + [[self tableView] setContentInset:e];
  101 +#if __IPHONE_3_2 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
  102 + }
  103 +#endif
98 } 104 }
99 105
100 #pragma mark utilities 106 #pragma mark utilities