Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
WYPopoverController
===================

*[This fork](https://github.com/sammcewan/WYPopoverController) is being actively maintained. The [original one](https://github.com/nicolaschengdev/WYPopoverController) seems to have been abandoned.*

WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.

### Screenshots
Expand Down Expand Up @@ -30,6 +32,7 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP

| Property | Type | Default value (iOS 6) | Default value (iOS 7) |
| ----------------------------- | -------------- | ---------------------: | ---------------------: |
| usesRoundedArrow | `BOOL` | NO | YES |
| tintColor | `UIColor` | *nil* | *nil* |
| arrowBase | `NSUInteger` | 42 | 25 |
| arrowHeight | `NSUInteger` | 18 | 13 |
Expand All @@ -51,9 +54,12 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP
| minOuterCornerRadius | `NSUInteger` | 0 | 0 |
| innerStrokeColor | `UIColor` | #262c31ff | #transparent |
| outerStrokeColor | `UIColor` | #262c31ff | #transparent |
| dimsBackgroundViewsTintColor | `BOOL` | YES | YES |

##### Arrow & Border

`usesRoundedArrow` (enabled by default) produces a nicely curved arrow. Set it to `NO` to revert to the old pointy arrow.

![](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")

##### Corner radius & View content insets
Expand All @@ -76,6 +82,10 @@ WYPopoverController is for the presentation of content in popover on iPhone / iP

![](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")

##### Tint

`dimsBackgroundViewsTintColor` controls whether views behind the overlay have their tint color dimmed.

### Works like UIPopoverController

---
Expand Down Expand Up @@ -148,22 +158,22 @@ WYPopoverController uses ARC.

~~iOS SDK 7.0 (with Xcode 5) is required.~~

#### Cocoapods
#### CocoaPods

Add this line `pod 'WYPopoverController', '~> 0.2.0'` to your PodFile.
Add this line `pod 'WYPopoverController', '~> 0.3.7'` to your PodFile.

Your PodFile should look like :

```Ruby
platform :ios, '6.0'
pod 'WYPopoverController', '~> 0.2.2'
pod 'WYPopoverController', '~> 0.3.7'
```

To use the `master` branch of the repo :

```Ruby
platform :ios, '6.0'
pod 'WYPopoverController', :git => 'https://github.com/nicolaschengdev/WYPopoverController.git'
pod 'WYPopoverController', :git => 'https://github.com/sammcewan/WYPopoverController.git'
```

#### Manually
Expand Down Expand Up @@ -327,14 +337,14 @@ Situations when handling is required:

---

A brief summary of each WYPopoverController release can be found on the [wiki](https://github.com/nicolaschengdev/WYPopoverController/wiki/Change-logs).
A brief summary of each WYPopoverController release can be found on the [wiki](https://github.com/sammcewan/WYPopoverController/wiki/Change-logs).

### Contact

---

* [@mikl_jeo](https://twitter.com/mikl_jeo) on Twitter
* [@nicolaschengdev](https://github.com/nicolaschengdev) on Github
* ~~[@mikl_jeo](https://twitter.com/mikl_jeo) on Twitter~~
* [@vitalys](https://github.com/vitalys) on Github

### License

Expand All @@ -349,3 +359,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.