@@ -7,7 +7,7 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
77
88---
99
10- ![ Potrait Screenshot ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_screenshots.png )
10+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_screenshots.png )
1111
1212### Features
1313
@@ -28,33 +28,45 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
2828| arrowBase | ` CGFloat ` | 42 |
2929| arrowHeight | ` CGFloat ` | 18 |
3030| borderWidth | ` CGFloat ` | 6 |
31+ | outerCornerRadius | ` CGFloat ` | 8 |
32+ | innerCornerRadius | ` CGFloat ` | 6 |
33+ | viewContentInsets | ` UIEdgeInsets ` | { 3, 0, 0, 0 } |
3134| strokeColor | ` UIColor ` | #262c31ff ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_strokecolor.png ) |
3235| fillTopColor | ` UIColor ` | #373f47ff ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_filltopcolor.png ) |
3336| fillBottomColor | ` UIColor ` | #3b434cff ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_fillbottomcolor.png ) |
3437| glossShadowColor | ` UIColor ` | #c3c5c77f ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_glossshadowcolor.png ) |
35- | glossShadowOffset | ` CGSize ` | { 0, 1.5 } |
3638| glossShadowBlurRadius | ` CGFloat ` | 0 |
39+ | glossShadowOffset | ` CGSize ` | { 0, 1.5 } |
3740| outerShadowColor | ` UIColor ` | #000000bf ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_shadowcolor.png ) |
38- | outerShadowOffset | ` CGSize ` | { 0, 2 } |
3941| outerShadowBlurRadius | ` CGFloat ` | 8 |
40- | outerCornerRadius | ` CGFloat ` | 8 |
42+ | outerShadowOffset | ` CGSize ` | { 0, 2 } |
4143| innerShadowColor | ` UIColor ` | #000000bf ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_default_shadowcolor.png ) |
42- | innerShadowOffset | ` CGSize ` | { 0, 1 } |
4344| innerShadowBlurRadius | ` CGFloat ` | 2 |
44- | innerCornerRadius | ` CGFloat ` | 6 |
45- | viewContentInsets | ` UIEdgeInsets ` | { 3, 0, 0, 0 } |
45+ | innerShadowOffset | ` CGSize ` | { 0, 1 } |
46+
47+ ##### Arrow & Border
48+
49+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_arrowbase.png " arrowBase: 42 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_arrowheight.png " arrowHeight: 18 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_borderwidth.png " borderWidth: 6 ")
50+
51+ ##### Corner radius & View content insets
52+
53+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_outercornerradius_0.png " outerCornerRadius: 0 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_innercornerradius_14.png " innerCornerRadius: 14 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_viewcontentinsets_4-4-4-4.png " viewContentInsets: {4, 4, 4, 4} ")
54+
55+ ##### Stroke & Fill
56+
57+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_strokecolor.png " strokeColor: #c3045e ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_filltopcolor.png " fillTopColor: #c3045e ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_fillbottomcolor.png " fillBottomColor: #c3045e ")
4658
47- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_arrowbase.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_arrowheight.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_borderwidth.png " width = " 200 " height = " 180 " hspace = " 10 " >
59+ ##### Gloss
4860
49- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_strokecolor .png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_filltopcolor .png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_fillbottomcolor .png " width = " 200 " height = " 180 " hspace = " 10 " >
61+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowcolor .png "glossShadowColor: #c3045e", glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 0") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowblurradius_2 .png " glossShadowColor: #c3045e, glossShadowOffset: {0, 1.5}, glossShadowBlurRadius: 2 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_glossshadowoffset_0-3 .png " glossShadowColor: #c3045e, glossShadowOffset: {0, 3}, glossShadowBlurRadius: 0 ")
5062
51- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_glossshadowcolor.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_glossshadowoffset_0-3.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_glossshadowblurradius_2.png " width = " 200 " height = " 180 " hspace = " 10 " >
63+ ##### Outer
5264
53- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_outershadowcolor.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_outershadowoffset_0--2 .png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_outershadowblurradius_2 .png " width = " 200 " height = " 180 " hspace = " 10 " >
65+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/ wypopover_outershadowcolor.png " outerShadowColor: #c3045e, outerShadowOffset: {0, 2}, outerShadowBlurRadius: 8 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_outershadowblurradius_2 .png " outerShadowColor: #c3045e, outerShadowOffset: {0, 2}, outerShadowBlurRadius: 2 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_outershadowoffset_0--2 .png " outerShadowColor: #c3045e, outerShadowOffset: {0, -2}, outerShadowBlurRadius: 2 ")
5466
55- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_outercornerradius_0.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_innershadowcolor.png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_innershadowoffset_0--1.png " width = " 200 " height = " 180 " hspace = " 10 " >
67+ ##### Inner
5668
57- < img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_innershadowblurradius_0 .png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_innercornerradius_14 .png " width = " 200 " height = " 180 " hspace = " 10 " >< img src = " https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/wypopover_viewcontentinsets_4-4-4-4 .png " width = " 200 " height = " 180 " hspace = " 10 " >
69+ ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_innershadowcolor .png " innerShadowColor: #c3045e, innerShadowOffset: {0, 1}, innerShadowBlurRadius: 2 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_innershadowoffset_0--1 .png " innerShadowColor: #c3045e, innerShadowOffset: {0, -1}, innerShadowBlurRadius: 2 ") ![ ] ( https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/appearance/small/wypopover_innershadowblurradius_0 .png " innerShadowColor: #c3045e, innerShadowOffset: {0, 1}, innerShadowBlurRadius: 0 ")
5870
5971### Works like UIPopoverController
6072
@@ -80,22 +92,22 @@ Add this line `pod 'WYPopoverController', '~> 0.1.1'` to your PodFile or add man
8092
8193---
8294
83- #### Simple
95+ ##### Simple
8496
8597``` objective-c
8698WYPopoverController* popoverController = [[WYPopoverController alloc ] initWithContentViewController: controller] ;
8799popoverController.delegate = self;
88100[ popoverController presentPopoverFromRect: button .bounds inView: button permittedArrowDirections: WYPopoverArrowDirectionAny animated: YES ] ;
89101```
90102
91- #### Appearance (Tint Color)
103+ ##### Appearance (Tint Color)
92104
93105```objective-c
94106WYPopoverBackgroundView* appearance = [WYPopoverBackgroundView appearance];
95107[appearance setTintColor:[UIColor orangeColor]];
96108```
97109
98- #### Appearance (Flat Popover)
110+ ##### Appearance (Flat Popover)
99111
100112``` objective-c
101113WYPopoverBackgroundView* appearance = [WYPopoverBackgroundView appearance ];
@@ -130,7 +142,7 @@ UINavigationBar* appearance2 = [UINavigationBar appearanceWhenContainedIn:[UINav
130142 UITextAttributeTextShadowOffset: [ NSValue valueWithUIOffset: UIOffsetMake (0, -1)] }] ;
131143```
132144
133- #### Storyboard
145+ ##### Storyboard
134146
135147```objective-c
136148- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
0 commit comments