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
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ pod 'NotificationAlertView'
##Popup with custom view

As a popup may be used any view for example view configured from storyboard
```

```swift
let popup = APNotificationAlertView.popupWithView(self.samplePopupView)

popup.show()
```
change height or popup position
```

```swift
let popup = APNotificationAlertView.popupWithView(self.samplePopupView)

popup.position = APNotificationAlertViewPosition.Bottom
Expand All @@ -44,7 +46,7 @@ popup.show()
##Question popup

Popup with text and Yes/No options. Use customCompletionHandler to get presed option index (Yes:0 No:1)
```
```swift
let question = "Lorem ipsum dolor sit amet?"

let popup = APNotificationAlertView.popupWithQuestion(question)
Expand All @@ -66,7 +68,7 @@ popup.show()
##Dialog popup

Popup with text and warious number of options. Use customCompletionHandler to get presed option index
```
```swift
let question = "Lorem ipsum dolor sit amet?"

let buttonTitles = ["Yes", "No", "Oh No!"]
Expand Down Expand Up @@ -105,7 +107,7 @@ popup.show()
Simple popup with text. Use hideAfterDelay property or outer action to hide


```
```swift
let popup = APNotificationAlertView.popupWithText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.")

popup.hideAfterDelay = 3
Expand Down