Skip to content

Commit

Permalink
renomeado método de pegar orientação do dispositivo #3
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvs committed Mar 9, 2014
1 parent ea79841 commit 11f3b0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PaleoProject/PaleoProject/Utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[Utils debugAlert:(message)]

#define screenBounds() \
[Utils screenBoundsOnOrientation]
[Utils screenBoundsOnCurrentOrientation]

#define PI 3.14159265358979 /* pi */
#define Degrees_To_Radians(angle) (angle / 180.0 * PI)
Expand All @@ -23,7 +23,7 @@

-(NSString*)getSafeLiteralString:(NSString*)text;

+(CGRect) screenBoundsOnOrientation;
+(CGRect) screenBoundsOnCurrentOrientation;

+(UIInterfaceOrientation)getDeviceOrientation;

Expand Down
3 changes: 1 addition & 2 deletions PaleoProject/PaleoProject/Utils/Utils.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ -(NSString*)getSafeLiteralString:(NSString*)text{
}

//Pega o tamanho da tela na orientação atual
//todo: rename method
+(CGRect) screenBoundsOnOrientation{
+(CGRect) screenBoundsOnCurrentOrientation{
CGRect screenBounds = [UIScreen mainScreen].bounds ;
CGFloat width = CGRectGetWidth(screenBounds) ;
CGFloat height = CGRectGetHeight(screenBounds) ;
Expand Down

0 comments on commit 11f3b0d

Please sign in to comment.