iOS Question In Iphone 7+ ,After Custom dialog works , objects is disabled.

Ömer Berkcan

Member
Licensed User
Hi,

I use custom dialog. It works ipad and everything is Ok. However , In iphone 7+, it opens and after i click Ok or Cancel buttons, all objects in the page is disable. Events don't work.

Do you have any idea why it doesn't work?


B4X:
Sub MesajGonder
    Dim pnlBody2 As Panel
    pnlBody2.Initialize("")
    'set its size
    pnlBody2.SetLayoutAnimated(0, 1, 0, 0, Pg.RootPanel.Width - 50dip, 300dip)
    'load the layout
    pnlBody2.LoadLayout("mesajgonder")
    konu.Color = Colors.ARGB(160, 0, 0, 0)
    konu.HintText  = "Lütfen Konuyu Giriniz"
    detay.Color = Colors.ARGB(160, 0, 0, 0)
    detay.HintText = "Lütfen Açıklama Giriniz."
    DetailsDialog.Initialize(pnlBody2)
    Dim sf As Object = DetailsDialog.ShowAsync("Test", "Ok", "Cancel", "", False)
    'disable the OK button.
    DetailsDialog.GetButton(DetailsDialog.RESULT_POSITIVE).Enabled = False
    Wait For (sf) Dialog_Result (Result As Int)
    If Result = DetailsDialog.RESULT_POSITIVE Then
        Log("Ok")
    End If
End Sub
 

Erel

Administrator
Staff member
Licensed User
I recommend you to use B4XDialogs from XUI Views for new projects.

You will need to upload a small project that demonstrates this issue.
 

Ömer Berkcan

Member
Licensed User
Thank you for your answer. Before i open the dialog, i show action sheet. I think , there is a problem there. I used sleep func. , before open dialog. It solved but i'm not sure it's correct.
 
Top