Commits

Ivan Andrus committed 99db59f

Make ActionSheets appear the correct orientation (they don't autorotate)

Comments (0)

Files changed (2)

Classes/EditViewController.m

                        nil];
     }
     if ( isPhone ) {
-        [actionSheet showInView:[UIApplication sharedApplication].keyWindow];
+        [actionSheet showFromToolbar:self.navigationController.toolbar];
     } else if ( [sender isKindOfClass:[UILongPressGestureRecognizer class]]
                && [sender state] == UIGestureRecognizerStateBegan ) {
 

Classes/ShareButtonDelegate.m

     }
 
     if ( isPhone ) {
-        [actionSheet showInView:[UIApplication sharedApplication].keyWindow];
+        [actionSheet showFromToolbar:viewController.navigationController.toolbar];
     } else if ( [origin isKindOfClass:[UIBarButtonItem class]] ) {
         [actionSheet showFromBarButtonItem:origin animated:YES];
     } else if ( [origin isKindOfClass:[UIView class]] ) {