Skip to content

Commit

Permalink
Merge pull request #4 from Morbix/patch-1
Browse files Browse the repository at this point in the history
Fix indentation
  • Loading branch information
rockbruno authored Aug 15, 2016
2 parents 1197f5f + e18c56d commit e8723d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ To program what happens when the Empty State's reload button is touched, add thi

```swift
extension MyViewController: ErrorProne {
func errorKingEmptyStateReloadButtonTouched() {
//load my stuff again
errorKing?.errorKingEmptyStateReloadButtonTouched()
}
func errorKingEmptyStateReloadButtonTouched() {
//load my stuff again
errorKing?.errorKingEmptyStateReloadButtonTouched()
}
}
```

Additionally, you can further customize ErrorKing by telling what happens before the empty state screen is displayed:

```swift
func actionBeforeDisplayingErrorKingEmptyState() {
//do something before displaying the empty state screen, like disabling your tableView's scrolling
errorKing?.actionBeforeDisplayingErrorKingEmptyState()
//do something before displaying the empty state screen, like disabling your tableView's scrolling
errorKing?.actionBeforeDisplayingErrorKingEmptyState()
}
```

Expand Down

0 comments on commit e8723d4

Please sign in to comment.