Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue #28 - Fixed orientation bug where the textfield could move too …

…far on focus
  • Loading branch information...
commit 3facd5def6b3d8e17d70cfdab5f5e57c12738069 1 parent a76c9aa
pec1985 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/TiSmsviewView.m
4 Classes/TiSmsviewView.m
View
@@ -83,8 +83,8 @@ -(NSInteger)keyboardHeight:(NSNotification *)val
NSDictionary* info = [val userInfo];
NSValue* aValue = [info objectForKey:UIKeyboardFrameEndUserInfoKey];
CGSize keyboardSize = [aValue CGRectValue].size;
-
- if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationPortrait || [[UIDevice currentDevice] orientation] == UIDeviceOrientationPortraitUpsideDown)
+ if ([[UIApplication sharedApplication]statusBarOrientation] == UIDeviceOrientationPortrait ||
+ [[UIApplication sharedApplication]statusBarOrientation] == UIDeviceOrientationPortraitUpsideDown)
return keyboardSize.height;
else
return keyboardSize.width;
Please sign in to comment.
Something went wrong with that request. Please try again.