Skip to content

Commit c63cca6

Browse files
end fixing issue #17
1 parent 4adf66d commit c63cca6

6 files changed

Lines changed: 145 additions & 103 deletions

File tree

README.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,40 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
1515

1616
* UIAppearance support
1717
* Works like UIPopoverController
18-
* Rotation support
18+
* Automatic orientation support
1919
* UIStoryboard support
2020
* Keyboard show / hide support
21+
* iOS 6 & 7 support
22+
2123

2224
### UIAppearance support
2325

2426
---
2527

26-
| Property | Type | Default value |
27-
| --------------------- | -------------- | -------------------------------------------------------------------------------------: |
28-
| tintColor | `UIColor` | *nil* |
29-
| arrowBase | `CGFloat` | 42 |
30-
| arrowHeight | `CGFloat` | 18 |
31-
| borderWidth | `CGFloat` | 6 |
32-
| outerCornerRadius | `CGFloat` | 8 |
33-
| minOuterCornerRadius ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_new_ico.png) | `CGFloat` | 0 |
34-
| innerCornerRadius | `CGFloat` | 6 |
35-
| viewContentInsets | `UIEdgeInsets` | { 3, 0, 0, 0 } |
36-
| strokeColor | `UIColor` | #262c31ff ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_strokecolor.png) |
37-
| fillTopColor | `UIColor` | #373f47ff ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_filltopcolor.png) |
38-
| fillBottomColor | `UIColor` | #3b434cff ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_fillbottomcolor.png) |
39-
| glossShadowColor | `UIColor` | #c3c5c77f ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_glossshadowcolor.png) |
40-
| glossShadowBlurRadius | `CGFloat` | 0 |
41-
| glossShadowOffset | `CGSize` | { 0, 1.5 } |
42-
| outerShadowColor | `UIColor` | #000000bf ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_shadowcolor.png) |
43-
| outerShadowBlurRadius | `CGFloat` | 8 |
44-
| outerShadowOffset | `CGSize` | { 0, 2 } |
45-
| innerShadowColor | `UIColor` | #000000bf ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_shadowcolor.png) |
46-
| innerShadowBlurRadius | `CGFloat` | 2 |
47-
| innerShadowOffset | `CGSize` | { 0, 1 } |
28+
| Property | Type | Default value (iOS 6) | Default value (iOS 7) |
29+
| ------------------------------------------------------------------ | -------------- | ---------------------: | ---------------------: |
30+
| tintColor | `UIColor` | *nil* | *nil* |
31+
| arrowBase | `CGFloat` | 42 | 25 |
32+
| arrowHeight | `CGFloat` | 18 | 13 |
33+
| borderWidth | `CGFloat` | 6 | 0 |
34+
| outerCornerRadius | `CGFloat` | 8 | 5 |
35+
| innerCornerRadius | `CGFloat` | 6 | 0 |
36+
| viewContentInsets | `UIEdgeInsets` | { 3, 0, 0, 0 } | UIEdgeInsetsZero |
37+
| fillTopColor | `UIColor` | #373f47ff | #f4f4f4ff |
38+
| fillBottomColor | `UIColor` | #3b434cff | #f4f4f4ff |
39+
| glossShadowColor | `UIColor` | #c3c5c77f | #transparent |
40+
| glossShadowBlurRadius | `CGFloat` | 0 | 0 |
41+
| glossShadowOffset | `CGSize` | { 0, 1.5 } | CGSizeZero |
42+
| outerShadowColor | `UIColor` | #000000bf | #transparent |
43+
| outerShadowBlurRadius | `CGFloat` | 8 | 0 |
44+
| outerShadowOffset | `CGSize` | { 0, 2 } | CGSizeZero |
45+
| innerShadowColor | `UIColor` | #000000bf | #transparent |
46+
| innerShadowBlurRadius | `CGFloat` | 2 | 0 |
47+
| innerShadowOffset | `CGSize` | { 0, 1 } | CGSizeZero |
48+
| strokeColor ![](screenshots/wypopover_deprecated_ico.png) | `UIColor` | #262c31ff | *nil* |
49+
| minOuterCornerRadius ![](screenshots/wypopover_new_ico.png) | `CGFloat` | 0 | 0 |
50+
| innerStrokeColor ![](screenshots/wypopover_new_ico.png) | `UIColor` | #262c31ff | #transparent |
51+
| outerStrokeColor ![](screenshots/wypopover_new_ico.png) | `UIColor` | #262c31ff | #transparent |
4852

4953
##### Arrow & Border
5054

WYPopoverController/WYPopoverController.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ typedef NS_OPTIONS(NSUInteger, WYPopoverArrowDirection) {
5151
{
5252
}
5353

54-
@property (nonatomic, strong) UIColor *tintColor UI_APPEARANCE_SELECTOR;
55-
56-
@property (nonatomic, strong) UIColor *strokeColor UI_APPEARANCE_SELECTOR DEPRECATED_MSG_ATTRIBUTE("BECAREFULL");
54+
@property (nonatomic, strong) UIColor *strokeColor UI_APPEARANCE_SELECTOR DEPRECATED_MSG_ATTRIBUTE("In WYPopoverController [0.1.3]. Use outerStrokeColor instead.");
5755

56+
@property (nonatomic, strong) UIColor *tintColor UI_APPEARANCE_SELECTOR;
5857
@property (nonatomic, strong) UIColor *fillTopColor UI_APPEARANCE_SELECTOR;
5958
@property (nonatomic, strong) UIColor *fillBottomColor UI_APPEARANCE_SELECTOR;
6059

@@ -67,6 +66,7 @@ typedef NS_OPTIONS(NSUInteger, WYPopoverArrowDirection) {
6766
@property (nonatomic, assign) CGFloat arrowHeight UI_APPEARANCE_SELECTOR;
6867

6968
@property (nonatomic, strong) UIColor *outerShadowColor UI_APPEARANCE_SELECTOR;
69+
@property (nonatomic, strong) UIColor *outerStrokeColor UI_APPEARANCE_SELECTOR;
7070
@property (nonatomic, assign) CGFloat outerShadowBlurRadius UI_APPEARANCE_SELECTOR;
7171
@property (nonatomic, assign) CGSize outerShadowOffset UI_APPEARANCE_SELECTOR;
7272
@property (nonatomic, assign) CGFloat outerCornerRadius UI_APPEARANCE_SELECTOR;

0 commit comments

Comments
 (0)