No need to set auth dialog contentInset on iPad, there's lots of space.
Showing
1 changed file
with
6 additions
and
0 deletions
@@ -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 | +#if __IPHONE_3_2 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2 | ||
93 | + if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { | ||
94 | +#endif | ||
92 | NSValue *keyboardBoundsValue = [[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey]; | 95 | NSValue *keyboardBoundsValue = [[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey]; |
93 | CGRect keyboardBounds; | 96 | CGRect keyboardBounds; |
94 | [keyboardBoundsValue getValue:&keyboardBounds]; | 97 | [keyboardBoundsValue getValue:&keyboardBounds]; |
95 | UIEdgeInsets e = UIEdgeInsetsMake(0, 0, keyboardBounds.size.height, 0); | 98 | UIEdgeInsets e = UIEdgeInsetsMake(0, 0, keyboardBounds.size.height, 0); |
96 | [[self tableView] setScrollIndicatorInsets:e]; | 99 | [[self tableView] setScrollIndicatorInsets:e]; |
97 | [[self tableView] setContentInset: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 |
-
Please register or login to post a comment