Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
kof.kofktu committed Nov 30, 2017
2 parents 79e42eb + d4940b3 commit 37139fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion KUIPopOver.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "KUIPopOver"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "Easy to use PopOver in iOS"

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion KUIPopOver/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,27 @@ public protocol KUIPopOverUsable {

```

#### for UIView
#### UIView

```swift
public func showPopover(sourceView: UIView, sourceRect: CGRect?)
public func showPopover(barButtonItem: UIBarButtonItem)
public func dismissPopover(animated: Bool)
public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion?)
```

#### for UIViewController
#### UIViewController

```swift
public func showPopover(sourceView: UIView, sourceRect: CGRect?)
public func showPopover(withNavigationController sourceView: UIView, sourceRect: CGRect?)
public func showPopover(barButtonItem: UIBarButtonItem)
public func showPopover(withNavigationController barButtonItem: UIBarButtonItem)
public func dismissPopover(animated: Bool)
public func dismissPopover(animated: Bool, completion: DismissPopoverCompletion?)
```

## At a Glance

#### for UIView
#### UIView

```swift
class CustomView: UIView, KUIPopOverUsable {
Expand All @@ -90,9 +90,11 @@ class CustomView: UIView, KUIPopOverUsable {
let view = CustomView()
view.showPopover(barButtonItem: sender)
view.dismissPopover(animated: true)
view.dismissPopover(animated: true, completion: {
})
```

#### for UIViewController
#### UIViewController

```swift
class CustomViewController: UIViewController, KUIPopOverUsable {
Expand All @@ -113,6 +115,8 @@ customViewController.showPopover(barButtonItem: sender)
customViewController.showPopover(withNavigationController: sender, sourceRect: sender.bounds)

customViewController.dismissPopover(animated: true)
customViewController.dismissPopover(animated: true, completion: {
})
```

## Authors
Expand Down

0 comments on commit 37139fd

Please sign in to comment.