Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

set webView's scroll delegate to nil in deinit in FolioReaderPage #194

Merged
merged 1 commit into from
Dec 22, 2016
Merged
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
1 change: 1 addition & 0 deletions Source/FolioReaderPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ open class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate, UIGestureRe
}

deinit {
webView.scrollView.delegate = nil
NotificationCenter.default.removeObserver(self)
}

Expand Down