iOS Question B4XPage and B4XDialog. How do I use it?

IdasI4A

Active Member
Licensed User
Longtime User
On a B4XPage I want to use a Dialog to request a piece of data, but I get an error.
Am I doing something wrong?
Private Sub B4XPage_Created (Root1 As B4XView):
Dialog.Initialize(Root)

B4X:
    InputTemplate.Initialize
    InputTemplate.lblTitle.Text = "Introduzca el código"
    Wait For (Dialog.ShowTemplate(InputTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
    If Result <> xui.DialogResponse_Positive Then
        Return
    End If
    Log(InputTemplate.Text)

Application_Active
Unexpected event (missing RaisesSynchronousEvents): b4ipage_keyboardstatechanged:
Error occurred on line: 301 (B4XPagesManager)
Expected: UIViewController, object type: NSNull
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
B4i Example -[B4IObjectWrapper setObject:] + 362
B4i Example -[b4i_b4xpagesmanager _b4ipage_keyboardstatechanged::] + 790
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1790
B4i Example -[B4IShell runMethod:] + 588
B4i Example -[B4IShell raiseEventImpl:method:args::] + 1908
B4i Example __40-[B4IShell raiseEventImpl:method:args::]_block_invoke + 42
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 1524
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1574
CoreFoundation CFRunLoopRunSpecific + 520
CoreFoundation CFRunLoopRunInMode + 108
GraphicsServices GSEventRunModal + 160
 

IdasI4A

Active Member
Licensed User
Longtime User
It seems that the version you've attached is v 1.03.
For v 1.04 should we wait for the next update of B4i?
 
Upvote 0
Top