|
|
@@ -77,32 +77,32 @@
|
|
|
// }
|
|
|
// [CATransaction commit];
|
|
|
|
|
|
-
|
|
|
- NSTimeInterval animationDuration = 0.30f;
|
|
|
- [UIView beginAnimations:nil context:nil];
|
|
|
- [UIView setAnimationDuration:animationDuration];
|
|
|
-
|
|
|
- UIInterfaceOrientation orientation = [[UIApplication sharedApplication]statusBarOrientation];
|
|
|
- if (UIInterfaceOrientationIsLandscape(orientation))
|
|
|
- {
|
|
|
-
|
|
|
-
|
|
|
- self.buttonAlbum.frame = CGRectMake(942,120,48,48);
|
|
|
- self.buttonCamera.frame = CGRectMake(942,200,48,48);
|
|
|
- self.buttonUpload.frame = CGRectMake(942,363,48,48);
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonAlbum;
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonCamera;
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonUpload;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- self.buttonAlbum.frame = CGRectMake(82,918,48,48);
|
|
|
- self.buttonCamera.frame = CGRectMake(173,918,48,48);
|
|
|
- self.buttonUpload.frame = CGRectMake(635,918,48,48);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [UIView commitAnimations];
|
|
|
+ // 2018.12.28 iPad Pro 11-inch位置不正确
|
|
|
+// NSTimeInterval animationDuration = 0.30f;
|
|
|
+// [UIView beginAnimations:nil context:nil];
|
|
|
+// [UIView setAnimationDuration:animationDuration];
|
|
|
+//
|
|
|
+// UIInterfaceOrientation orientation = [[UIApplication sharedApplication]statusBarOrientation];
|
|
|
+// if (UIInterfaceOrientationIsLandscape(orientation))
|
|
|
+// {
|
|
|
+//
|
|
|
+//
|
|
|
+// self.buttonAlbum.frame = CGRectMake(942,120,48,48);
|
|
|
+// self.buttonCamera.frame = CGRectMake(942,200,48,48);
|
|
|
+// self.buttonUpload.frame = CGRectMake(942,363,48,48);
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonAlbum;
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonCamera;
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonUpload;
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// self.buttonAlbum.frame = CGRectMake(82,918,48,48);
|
|
|
+// self.buttonCamera.frame = CGRectMake(173,918,48,48);
|
|
|
+// self.buttonUpload.frame = CGRectMake(635,918,48,48);
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// [UIView commitAnimations];
|
|
|
|
|
|
|
|
|
|
|
|
@@ -126,37 +126,37 @@
|
|
|
self.imgview.image = self.img;
|
|
|
|
|
|
|
|
|
- UIApplication * app = [UIApplication sharedApplication];
|
|
|
- AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
+// UIApplication * app = [UIApplication sharedApplication];
|
|
|
+// AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
// [appDelegate didRotated];
|
|
|
|
|
|
|
|
|
-
|
|
|
- NSTimeInterval animationDuration = 0.30f;
|
|
|
- [UIView beginAnimations:nil context:nil];
|
|
|
- [UIView setAnimationDuration:animationDuration];
|
|
|
-
|
|
|
- UIInterfaceOrientation orientation = [[UIApplication sharedApplication]statusBarOrientation];
|
|
|
- if (UIInterfaceOrientationIsLandscape(orientation))
|
|
|
- {
|
|
|
-
|
|
|
-
|
|
|
- self.buttonAlbum.frame = CGRectMake(942,120,48,48);
|
|
|
- self.buttonCamera.frame = CGRectMake(942,200,48,48);
|
|
|
- self.buttonUpload.frame = CGRectMake(942,363,48,48);
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonAlbum;
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonCamera;
|
|
|
- // @property (strong, nonatomic) IBOutlet UIButton *buttonUpload;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- self.buttonAlbum.frame = CGRectMake(82,918,48,48);
|
|
|
- self.buttonCamera.frame = CGRectMake(173,918,48,48);
|
|
|
- self.buttonUpload.frame = CGRectMake(635,918,48,48);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- [UIView commitAnimations];
|
|
|
+ // 2018.12.28 iPad Pro 11-inch位置不正确
|
|
|
+// NSTimeInterval animationDuration = 0.30f;
|
|
|
+// [UIView beginAnimations:nil context:nil];
|
|
|
+// [UIView setAnimationDuration:animationDuration];
|
|
|
+//
|
|
|
+// UIInterfaceOrientation orientation = [[UIApplication sharedApplication]statusBarOrientation];
|
|
|
+// if (UIInterfaceOrientationIsLandscape(orientation))
|
|
|
+// {
|
|
|
+//
|
|
|
+//
|
|
|
+// self.buttonAlbum.frame = CGRectMake(942,120,48,48);
|
|
|
+// self.buttonCamera.frame = CGRectMake(942,200,48,48);
|
|
|
+// self.buttonUpload.frame = CGRectMake(942,363,48,48);
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonAlbum;
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonCamera;
|
|
|
+// // @property (strong, nonatomic) IBOutlet UIButton *buttonUpload;
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// self.buttonAlbum.frame = CGRectMake(82,918,48,48);
|
|
|
+// self.buttonCamera.frame = CGRectMake(173,918,48,48);
|
|
|
+// self.buttonUpload.frame = CGRectMake(635,918,48,48);
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// [UIView commitAnimations];
|
|
|
|
|
|
// Do any additional setup after loading the view.
|
|
|
}
|