equal
deleted
inserted
replaced
59 |
59 |
60 UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; |
60 UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; |
61 NSInteger angle_left = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 180 : 0; |
61 NSInteger angle_left = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 180 : 0; |
62 NSInteger angle_right = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 0 : 180; |
62 NSInteger angle_right = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 0 : 180; |
63 |
63 |
64 if (IS_VERY_POWERFUL()) { |
64 NSString *model = getModelType(); |
|
65 if (IS_VERY_POWERFUL(model)) { |
65 [UIView beginAnimations:@"overlay rotation" context:NULL]; |
66 [UIView beginAnimations:@"overlay rotation" context:NULL]; |
66 [UIView setAnimationDuration:0.7]; |
67 [UIView setAnimationDuration:0.7]; |
67 } |
68 } |
68 switch (orientation) { |
69 switch (orientation) { |
69 case UIDeviceOrientationLandscapeLeft: |
70 case UIDeviceOrientationLandscapeLeft: |
80 break; |
81 break; |
81 default: |
82 default: |
82 // a debug log would spam too much |
83 // a debug log would spam too much |
83 break; |
84 break; |
84 } |
85 } |
85 if (IS_VERY_POWERFUL()) |
86 if (IS_VERY_POWERFUL(model)) |
86 [UIView commitAnimations]; |
87 [UIView commitAnimations]; |
87 } |
88 } |
88 |
89 |
89 #pragma mark - |
90 #pragma mark - |
90 #pragma mark View Management |
91 #pragma mark View Management |