dbalman Member Licensed User Longtime User Oct 24, 2016 #1 Given two separate WKWebViews with a common event name (e.g., WKWebView), why does this code cause the build to fail? Code: Copy Sub WKWebView_PageFinished (Success As Boolean, Url As String) Dim wk As WKWebView = Sender Log(WkWebView.BaseView.Tag) End Sub B4i version: 3.00 Parsing code. (0.04s) Compiling code. (0.19s) Compiling layouts code. (0.00s) Compiling debugger engine code. (6.65s) Building Xcode project (0.10s) Sending data to remote compiler. Error B4i line: 437 Dim wk As WKWebView = Sender expected expression However, if I comment the code block, run the program in debug mode, and uncomment the code block with a hotswap, it works as expected.
Given two separate WKWebViews with a common event name (e.g., WKWebView), why does this code cause the build to fail? Code: Copy Sub WKWebView_PageFinished (Success As Boolean, Url As String) Dim wk As WKWebView = Sender Log(WkWebView.BaseView.Tag) End Sub B4i version: 3.00 Parsing code. (0.04s) Compiling code. (0.19s) Compiling layouts code. (0.00s) Compiling debugger engine code. (6.65s) Building Xcode project (0.10s) Sending data to remote compiler. Error B4i line: 437 Dim wk As WKWebView = Sender expected expression However, if I comment the code block, run the program in debug mode, and uncomment the code block with a hotswap, it works as expected.
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #2 Can you upload the project? Upvote 0
dbalman Member Licensed User Longtime User Oct 25, 2016 #3 I attached a small example. However, if I comment the code block, run the program in debug mode, and uncomment the code block with a hotswap, it works as expected. Click to expand... Cleaning the project and attempting to run it again after this will cause it to fail again. Attachments WKWebView Example.zip WKWebView Example.zip 2.2 KB · Views: 523 Upvote 0
I attached a small example. However, if I comment the code block, run the program in debug mode, and uncomment the code block with a hotswap, it works as expected. Click to expand... Cleaning the project and attempting to run it again after this will cause it to fail again.
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #4 It is a bug in iUI8 library. It is fixed for the next update. Add this code and it will work: Code: Copy #if OBJC @import WebKit; #end if Upvote 0
It is a bug in iUI8 library. It is fixed for the next update. Add this code and it will work: Code: Copy #if OBJC @import WebKit; #end if