7 // |
7 // |
8 |
8 |
9 #import <UIKit/UIKit.h> |
9 #import <UIKit/UIKit.h> |
10 |
10 |
11 typedef enum _MGCornersPosition { |
11 typedef enum _MGCornersPosition { |
12 MGCornersPositionLeadingVertical = 0, // top of screen for a left/right split. |
12 MGCornersPositionLeadingVertical = 0, // top of screen for a left/right split. |
13 MGCornersPositionTrailingVertical = 1, // bottom of screen for a left/right split. |
13 MGCornersPositionTrailingVertical = 1, // bottom of screen for a left/right split. |
14 MGCornersPositionLeadingHorizontal = 2, // left of screen for a top/bottom split. |
14 MGCornersPositionLeadingHorizontal = 2, // left of screen for a top/bottom split. |
15 MGCornersPositionTrailingHorizontal = 3 // right of screen for a top/bottom split. |
15 MGCornersPositionTrailingHorizontal = 3 // right of screen for a top/bottom split. |
16 } MGCornersPosition; |
16 } MGCornersPosition; |
17 |
17 |
18 @class MGSplitViewController; |
18 @class MGSplitViewController; |
19 @interface MGSplitCornersView : UIView { |
19 @interface MGSplitCornersView : UIView { |
20 float cornerRadius; |
20 float cornerRadius; |
21 MGSplitViewController *splitViewController; |
21 MGSplitViewController *splitViewController; |
22 MGCornersPosition cornersPosition; |
22 MGCornersPosition cornersPosition; |
23 UIColor *cornerBackgroundColor; |
23 UIColor *cornerBackgroundColor; |
24 } |
24 } |
25 |
25 |
26 @property (nonatomic, assign) float cornerRadius; |
26 @property (nonatomic, assign) float cornerRadius; |
27 @property (nonatomic, assign) MGSplitViewController *splitViewController; // weak ref. |
27 @property (nonatomic, assign) MGSplitViewController *splitViewController; // weak ref. |
28 @property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it. |
28 @property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it. |