Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Extend code to support UIWebView #15 #16

Merged
merged 1 commit into from
Jan 11, 2017
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
6 changes: 6 additions & 0 deletions pulltorefresh.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export class PullToRefresh extends common.PullToRefresh {

this.content.ios.addSubview(this._refreshControl);
}
else if (this.content.ios instanceof UIWebView) {
// Ensure that we can trigger the refresh, even if the content is not large enough
this.content.ios.scrollView.alwaysBounceVertical = true;

this.content.ios.scrollView.addSubview(this._refreshControl);
}
else {
throw new Error("Content must inherit from UIScrollView!");
}
Expand Down