iOS Question [ WebView ] Pull down reload webview ?

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
hello everyone !

have a way to implement an action to reload webview when pull down ?
 

Semen Matusovskiy

Well-Known Member
Licensed User
If you mean, how to detect scrolling - yes, it's possible and enough simple.
Make a delegate
B4X:
    Dim no As NativeObject = WebView1
    no.GetField ("scrollView").SetField ("delegate", Me)
and add callback functions. For example
B4X:
#IF OBJC
- (void) scrollViewDidScroll: (UIScrollView *) scrollView  { ... }
#End If
See descriptions in https://developer.apple.com/documen...ate/1619392-scrollviewdidscroll?language=objc

I attached a small project.
 

Attachments

  • s21.zip
    2.3 KB · Views: 276
Last edited:
Upvote 0
Top