Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
NanoTech
2010-06-17 15:06:44 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7bf9ceea31ca9b8cdf234eb2f8ec36e6e438113
b7bf9cee
1 parent
2115a810
No need to set auth dialog contentInset on iPad, there's lots of space.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
Classes/ASIAuthenticationDialog.m
Classes/ASIAuthenticationDialog.m
View file @
b7bf9ce
...
...
@@ -89,12 +89,18 @@ static const NSUInteger kDomainSection = 1;
-
(
void
)
keyboardWillShow
:
(
NSNotification
*
)
notification
{
NSValue
*
keyboardBoundsValue
=
[[
notification
userInfo
]
objectForKey
:
UIKeyboardBoundsUserInfoKey
];
CGRect
keyboardBounds
;
[
keyboardBoundsValue
getValue
:
&
keyboardBounds
];
UIEdgeInsets
e
=
UIEdgeInsetsMake
(
0
,
0
,
keyboardBounds
.
size
.
height
,
0
);
[[
self
tableView
]
setScrollIndicatorInsets
:
e
];
[[
self
tableView
]
setContentInset
:
e
];
#if __IPHONE_3_2 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
if
(
UI_USER_INTERFACE_IDIOM
()
==
UIUserInterfaceIdiomPhone
)
{
#endif
NSValue
*
keyboardBoundsValue
=
[[
notification
userInfo
]
objectForKey
:
UIKeyboardBoundsUserInfoKey
];
CGRect
keyboardBounds
;
[
keyboardBoundsValue
getValue
:
&
keyboardBounds
];
UIEdgeInsets
e
=
UIEdgeInsetsMake
(
0
,
0
,
keyboardBounds
.
size
.
height
,
0
);
[[
self
tableView
]
setScrollIndicatorInsets
:
e
];
[[
self
tableView
]
setContentInset
:
e
];
#if __IPHONE_3_2 && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
}
#endif
}
#pragma mark utilities
...
...
Please
register
or
login
to post a comment