iOS Question B4i replacment "Reflector"

tariqyounis

Active Member
Licensed User
Longtime User
Code:
Dim r As Reflector
    r.Target = WebView1
    r.Target = r.RunMethod("getSettings")
    r.RunMethod2("setBuiltInZoomControls", True, "java.lang.boolean")
    r.RunMethod2("setDisplayZoomControls", False, "java.lang.boolean")

What shall I do to activate the event "WebView1_PageFinished(Url As String)" as it is working in B4A
 
The direct analog of Reflector is NativeObject. But you need to forget any code, based on Reflector. IOS uses another classes, methods, events.

There is no zoom control in WebView. But you can use viewport meta tag in HTML header. This tag allows to set initial, maximum and minimum scale. .

About PageFinished. Follow documentation. This subroutine in B4i has two parameters Sub WebView1_PageFinished (Success As Boolean, Url As String)
 
Upvote 0
Back
Top