Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Fix rotation of modals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Dexter committed Dec 14, 2011
1 parent 952f5e3 commit 9610fe9
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 280 deletions.
27 changes: 11 additions & 16 deletions SSToolkit/SSViewController.h
Expand Up @@ -15,19 +15,16 @@
Note: Currently only iPad is supported.
*/
@interface SSViewController : UIViewController <SSModalViewController> {

SSViewController *_modalParentViewController;
UIViewController<SSModalViewController> *_customModalViewController;
BOOL _dismissCustomModalOnVignetteTap;
CGSize _contentSizeForViewInCustomModal;
CGPoint _originForViewInCustomModal;

@protected

UIView *_modalContainerView;
UIImageView *_modalContainerBackgroundView;
UIButton *_vignetteButton;
UIView *_modalRotatingContainerView;
SSViewController *_modalParentViewController;
BOOL _dismissCustomModalOnVignetteTap;
CGSize _contentSizeForViewInCustomModal;
CGPoint _originForViewInCustomModal;

@private
UIViewController<SSModalViewController> *_customModalViewController;
UIButton *_vignetteButton;
UIImageView *_modalContainerBackgroundView;
UIView *_modalContainerView;
}

@property (nonatomic, assign) SSViewController *modalParentViewController;
Expand All @@ -39,10 +36,8 @@
- (void)layoutViews;
- (void)layoutViewsWithOrientation:(UIInterfaceOrientation)orientation;

- (void)presentCustomModalViewController:(UIViewController<SSModalViewController> *)viewController;
- (void)presentCustomModalViewController:(UIViewController<SSModalViewController> *)viewController animated:(BOOL)animated;
- (void)dismissCustomModalViewController;
- (void)dismissCustomModalViewController:(BOOL)animated;
- (void)dismissCustomModalViewControllerAnimated:(BOOL)animated;

- (void)customModalWillAppear:(BOOL)animated;
- (void)customModalDidAppear:(BOOL)animated;
Expand Down

0 comments on commit 9610fe9

Please sign in to comment.