I have error in the following code. In the layout, I just put customerlistview without putting any code.
B4X:
Private Sub Application_Start (Nav As NavigationController)
'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
Page1.RootPanel.LoadLayout("1")
NavControl.ShowPage(Page1)
End Sub
B4X:
Application_Start
Error occurred on line: 28 (Main)
Object was not initialized (NSObject)
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
B4i Example -[B4IObjectWrapper object] + 200
B4i Example -[B4INativeObject RunMethod::] + 84
B4i Example -[b4i_customlistview _initialize:::] + 1096
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784
B4i Example -[B4IShell runVoidMethod] + 210
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2042
B4i Example -[B4IShellBI raiseEvent:event:params:] + 1328
B4i Example -[B4ICustomViewWrapper AfterDesignerScript] + 2030
B4i Example -[B4ILayoutBuilder loadLayout:::] + 3268
B4i Example -[B4IPanelWrapper LoadLayout::] + 150
B4i Example -[b4i_main _application_start:] + 1326
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784
B4i Example -[B4IShell runMethod:] + 588
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2192
B4i Example -[B4IShellBI raiseEvent:event:params:] + 1328
B4i Example __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
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
UIKit UIApplicationMain + 144
B4i Example main + 106
libdyld.dylib <redacted> + 2
)
Application_Active