iOS Question panels problem B4i

Tomas Petrus

Active Member
Licensed User
Hi guys,
I have panel converted from B4A version of application and it seems fine - I can open it in designer and its seems fine.

In click action I want to show the panel over the curent page like in B4A.

So i tried to load the new view to the page

B4X:
PageObjednavka.RootPanel.LoadLayout("naseptavac")
which was previously initialized:
B4X:
    PageObjednavka.Initialize("PageObjednavka")
    PageObjednavka.RootPanel.LoadLayout("default")
But I am geting error ... what am I doing wrong ?

B4X:
Error occurred on line: 380 (Main)
-[b4i_placesautocompleteview setObject:]: unrecognized selector sent to instance 0x1009d1710
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  CoreFoundation       <redacted> + 1380
  CoreFoundation       _CF_forwarding_prep_0 + 92
  result               -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3284
  result               -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 4812
  result               -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 4812
  result               -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 4812
  result               -[B4ILayoutBuilder loadLayout:::] + 2028
 result               -[B4IPanelWrapper LoadLayout::] + 204
 result               -[b4i_main _naseptavacshow:] + 632
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 284
 result               +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
 result               -[B4IShell runMethod:] + 448
 result               -[B4IShell raiseEventImpl:method:args::] + 2172
 result               -[B4IShellBI raiseEvent:event:params:] + 1580
 result               __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
 libdispatch.dylib    <redacted> + 24
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1012
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 2272
 CoreFoundation       CFRunLoopRunSpecific + 552
 GraphicsServices     GSEventRunModal + 100
 UIKit                UIApplicationMain + 236
 result               main + 124
 libdyld.dylib        <redacted> + 4
)
 

Tomas Petrus

Active Member
Licensed User
In B4A I would load all Layouts on AppStart and then I can show / hide any of them...
Here I dont know how to proceed.

The intention is to have floating panel over the content (with some transparency) the panel and all his childs are in one separate Layout file.
 

Tomas Petrus

Active Member
Licensed User
Cant... but when I tried to separete just enough stuff to post it I find out that the converter that convert .bal to .bil changed CustomView PlacesAutocomplete to a Panel and therefore I was getting that error.

So I recreated CustomViews in designer and it seems to be working.
 
Top