Skip to content

Commit

Permalink
Mod: No Fondling Needed For Orientation Anymore
Browse files Browse the repository at this point in the history
                    _....----"""----...._
                 .-'  o    o    o    o   '-.
                /  o    o    o         o    \
               /     o      o   o     o    o \
             _|   o   o    o      o  o     o  |_
            / `''-----.................-----''` \
            \___________________________________/
              \~`-`.__.`-~`._.~`-`~.-~.__.~`-`/
           jgs \                             /
                `-._______________________.-'

    From small things, momma, big things one day come.
  • Loading branch information
Tres Wong-Godfrey committed Dec 11, 2014
1 parent 8930aca commit 48bf828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions TapkuLibrary.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'TapkuLibrary'
s.version = '0.3.6'
s.version = '0.3.7'
s.platform = :ios
s.author = { 'Devin Ross' => 'devin@devinsheaven.com' }
s.license = { :type => 'MIT', :file => 'License.txt' }
Expand All @@ -15,4 +15,4 @@ Pod::Spec.new do |s|
s.source_files = 'src/TapkuLibrary/*.{h,m}'
s.resources = 'src/TapkuLibrary.bundle'
s.frameworks = 'QuartzCore'
end
end
12 changes: 6 additions & 6 deletions src/TapkuLibrary/TKAlertCenter.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ - (void) showAlerts{

UIInterfaceOrientation o = [UIApplication sharedApplication].statusBarOrientation;
CGFloat degrees = 0;
if(o == UIInterfaceOrientationLandscapeLeft ) degrees = -90;
else if(o == UIInterfaceOrientationLandscapeRight ) degrees = 90;
else if(o == UIInterfaceOrientationPortraitUpsideDown) degrees = 180;
// if(o == UIInterfaceOrientationLandscapeLeft ) degrees = -90;
// else if(o == UIInterfaceOrientationLandscapeRight ) degrees = 90;
// else if(o == UIInterfaceOrientationPortraitUpsideDown) degrees = 180;
_alertView.transform = CGAffineTransformMakeRotation(degrees * M_PI / 180);
_alertView.transform = CGAffineTransformScale(_alertView.transform, 2, 2);

Expand Down Expand Up @@ -222,9 +222,9 @@ - (void) animationStep2{

UIInterfaceOrientation o = [UIApplication sharedApplication].statusBarOrientation;
CGFloat degrees = 0;
if(o == UIInterfaceOrientationLandscapeLeft ) degrees = -90;
else if(o == UIInterfaceOrientationLandscapeRight ) degrees = 90;
else if(o == UIInterfaceOrientationPortraitUpsideDown) degrees = 180;
// if(o == UIInterfaceOrientationLandscapeLeft ) degrees = -90;
// else if(o == UIInterfaceOrientationLandscapeRight ) degrees = 90;
// else if(o == UIInterfaceOrientationPortraitUpsideDown) degrees = 180;
_alertView.transform = CGAffineTransformMakeRotation(degrees * M_PI / 180);
_alertView.transform = CGAffineTransformScale(_alertView.transform, 0.5, 0.5);

Expand Down

0 comments on commit 48bf828

Please sign in to comment.