Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Don't depend on view description.
Browse files Browse the repository at this point in the history
Use class name instead.

Signed-off-by: studpete <studpete@gmail.com>
  • Loading branch information
dougbarth authored and steipete committed May 20, 2009
1 parent 129903c commit db64330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TTMessageController.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ - (void)dealloc {
- (UIView *)keyboardView {
for (UIWindow *window in [[UIApplication sharedApplication] windows]) {
for (UIView *view in [window subviews]) {
if ([[view description] hasPrefix:@"<UIKeyboard"]) {
NSString *viewClassName = NSStringFromClass([view class]);
if ([viewClassName isEqual:@"UIKeyboard"]) {
return view;
}
}

}
return nil;
}
Expand Down

0 comments on commit db64330

Please sign in to comment.