JLChen
2021-08-02 38f4fb064df09f344fc3237409c76a9fba2a8a9e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  TPMultiLayoutViewController.h
//
//  Created by Michael Tyson on 14/08/2011.
//  Copyright 2011 A Tasty Pixel. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
@interface TPMultiLayoutViewController : UIViewController {
    UIView *portraitView;
    UIView *landscapeView;
    
    @private
    NSDictionary *portraitAttributes;
    NSDictionary *landscapeAttributes;
    BOOL viewIsCurrentlyPortrait;
}
 
// Call directly to use with custom animation (override willRotateToInterfaceOrientation to disable the switch there)
- (void)applyLayoutForInterfaceOrientation:(UIInterfaceOrientation)newOrientation;
 
@property(nonatomic, strong) IBOutlet UIView *landscapeView;
@property(nonatomic, strong) IBOutlet UIView *portraitView;
@property (assign) BOOL viewIsCurrentlyPortrait;
 
@end