Marino Faggiana hace 7 años
padre
commit
8ada903b8d

+ 7 - 0
iOSClient/Library/AHKActionSheet/AHKActionSheetViewController.m

@@ -22,6 +22,8 @@
 {
     [super viewDidLoad];
 
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotateDeviceChangeNotification:) name:UIDeviceOrientationDidChangeNotification object:nil];
+    
     [self.view addSubview:self.actionSheet];
     self.actionSheet.frame = self.view.bounds;
 }
@@ -55,6 +57,11 @@
     return UIInterfaceOrientationMaskAll;
 }
 
+-(void)didRotateDeviceChangeNotification:(NSNotification *)notification
+{
+    [self.actionSheet dismissAnimated:NO];
+}
+
 - (UIStatusBarStyle)preferredStatusBarStyle
 {
     UIWindow *window = self.actionSheet.previousKeyWindow;