iOS Question Crash Application

Emme Developer

Well-Known Member
Licensed User
Longtime User
Hi everybody! I've an issue with my app in release mode. This will crash i think when i try to do this code

B4X:
Main.App.KeyController = Main.tbc
        Dim no As NativeObject = Main.tbc
        no.GetField("tabBar").SetField("barTintColor", no.ColorToUIColor(0xFFf7f7f7)) 'active item
        no.GetField("tabBar").SetField("TintColor", no.ColorToUIColor(0xFFED7B53)) 'active item
      
'other code and stuff..

        Dim ar(l.Size) As Object
        For i = 0 To l.Size-1
            ar(i) = CreateTb(l.Get(i))
        Next
        Main.tbc.Pages = ar
        If Not(firsTime) Then Main.tbc.SelectedIndex = Main.tbc.Pages.Size-1

But this code in Simulator, and in real device in debug mode this doesn't crash. Only happen on real device in release mode.
Log is this

upload_2017-7-29_13-29-41.png


But i've not any disappear event..
Can anyone helps me? Thanks!
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
It is probably the Page_Disappear event.

Are you showing any page before you switch the App.KeyController?
But i have non page_disappear evento.
Yes i show a page in a TabBarController, and i Will change in runtime main.tbc to change TabBar elements
 
Upvote 0
Top