Skip to content

Commit 7936c8b

Browse files
update README
1 parent f5d0910 commit 7936c8b

7 files changed

Lines changed: 8 additions & 20 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
77

88
---
99

10-
![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_portrait_2_screenshot.png)
10+
![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_screenshot_1.png) ![](https://raw.github.com/nicolaschengdev/WYPopoverController/master/screenshots/wypopover_screenshot_2.png)
1111

1212
### Features
1313

@@ -88,7 +88,7 @@ WYPopoverController uses ARC.
8888

8989
---
9090

91-
Add this line `pod 'WYPopoverController', '~> 0.1.2'` to your PodFile or add manually these 4 files `WYPopoverController.h`, `WYPopoverController.m`, `WYStoryboardPopoverSegue.h`, `WYStoryboardPopoverSegue.m` and add `Quartzcore` library to your project.
91+
Add this line `pod 'WYPopoverController', '~> 0.1.2'` to your PodFile or add manually these 4 files `WYPopoverController.h`, `WYPopoverController.m`, `WYStoryboardPopoverSegue.h`, `WYStoryboardPopoverSegue.m` and add `Quartzcore` framework to your project.
9292

9393
### Examples
9494

demos/Demo/WYPopoverDemo/WYAppDelegate.m

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1717
{
1818
//UIPopoverController
1919

20-
WYPopoverBackgroundView* popoverAppearance = [WYPopoverBackgroundView appearance];
21-
[popoverAppearance setMinOuterCornerRadius:8];
22-
23-
UIBarButtonItem* itemAppearance = [UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], [WYPopoverBackgroundView class], nil];
24-
25-
[itemAppearance setTintColor:[UIColor colorWithRed:56.f/255.f green:64.f/255.f blue:84.f/255.f alpha:1.f]];
26-
27-
/*
28-
[navBarAppearance setTitleTextAttributes:@{
29-
UITextAttributeTextColor : [UIColor darkGrayColor],
30-
UITextAttributeTextShadowColor: [UIColor whiteColor],
31-
UITextAttributeTextShadowOffset: [NSValue valueWithUIOffset:UIOffsetMake(0, -1)]
32-
}];
33-
*/
34-
3520
//Appearance 1 (white popover)
3621
//
3722
/*
3823
WYPopoverBackgroundView* popoverAppearance = [WYPopoverBackgroundView appearance];
3924
[popoverAppearance setTintColor:[UIColor whiteColor]];
4025
4126
[popoverAppearance setOuterCornerRadius:8];
27+
[popoverAppearance setMinOuterCornerRadius:8];
4228
[popoverAppearance setOuterShadowBlurRadius:6];
4329
[popoverAppearance setOuterShadowColor:[UIColor colorWithWhite:0 alpha:0.65]];
4430
[popoverAppearance setOuterShadowOffset:CGSizeMake(0, 2)];
@@ -67,6 +53,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
6753
//
6854
/*
6955
WYPopoverBackgroundView* popoverAppearance = [WYPopoverBackgroundView appearance];
56+
[popoverAppearance setMinOuterCornerRadius:8];
7057
[popoverAppearance setTintColor:[UIColor orangeColor]];
7158
*/
7259

@@ -76,16 +63,17 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
7663
WYPopoverBackgroundView* popoverAppearance = [WYPopoverBackgroundView appearance];
7764
7865
[popoverAppearance setOuterCornerRadius:4];
66+
[popoverAppearance setMinOuterCornerRadius:4];
7967
[popoverAppearance setOuterShadowBlurRadius:0];
8068
[popoverAppearance setOuterShadowColor:[UIColor clearColor]];
8169
[popoverAppearance setOuterShadowOffset:CGSizeMake(0, 0)];
8270
8371
[popoverAppearance setGlossShadowColor:[UIColor clearColor]];
8472
[popoverAppearance setGlossShadowOffset:CGSizeMake(0, 0)];
8573
86-
[popoverAppearance setBorderWidth:8];
87-
[popoverAppearance setArrowHeight:10];
88-
[popoverAppearance setArrowBase:20];
74+
[popoverAppearance setBorderWidth:5];
75+
[popoverAppearance setArrowHeight:20];
76+
[popoverAppearance setArrowBase:42];
8977
9078
[popoverAppearance setInnerCornerRadius:4];
9179
[popoverAppearance setInnerShadowBlurRadius:0];
-57.9 KB
Binary file not shown.
-89 KB
Binary file not shown.
82.3 KB
Loading
62.3 KB
Loading
-75.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)