Erel, first of all thank you so much for the beautiness of your tools. A really impressive work. By the way, I'm facing a problem with the iCustomDialog's library.
In one of your posts, using the following code, it do the job:
This run fine over a iPhone 5/5S with iOS version 10.3.2
Using the above code on iPhone 6 iOS version 11.4 the dialog still remain in the center of the screen.
Stepping throught using the debbuger, I've seen that a breackpoint to the "Sleep(5)" line is never reached.
Using instead this version of the code:
The Dialog moves to the ZERO position on the screen.
Setting any value different from zero, to v.Top causes the iCustomDialog to set the position again in the center of the screen (202.0) in the iPhone 6 case.
Is there a bug into the iCustomDialog library or I'm missing something?
Libraries used: iCustomDialog (V1.00), iUI8 (V.1.70). Compiler set to 64 bit, otherwise no way to run it in debug mode.
Thank you for your support.
In one of your posts, using the following code, it do the job:
B4X:
Public Sub MoveCustomDialog(cd As CustomLayoutDialog, Top As Int)
Dim no As NativeObject = cd
Dim v As View = no.GetField("alertView").GetField("view")
Do While v.Top = 0
Sleep(5)
Loop
v.Top = Top
End Sub
This run fine over a iPhone 5/5S with iOS version 10.3.2
Using the above code on iPhone 6 iOS version 11.4 the dialog still remain in the center of the screen.
Stepping throught using the debbuger, I've seen that a breackpoint to the "Sleep(5)" line is never reached.
Using instead this version of the code:
B4X:
Public Sub MoveCustomDialog(cd As CustomLayoutDialog, Top As Int)
Dim no As NativeObject = cd
Dim v As View = no.GetField("alertView").GetField("view")
'Do While v.Top = 0
' Sleep(5)
'Loop
v.Top = 0 'Top
End Sub
The Dialog moves to the ZERO position on the screen.
Setting any value different from zero, to v.Top causes the iCustomDialog to set the position again in the center of the screen (202.0) in the iPhone 6 case.
Is there a bug into the iCustomDialog library or I'm missing something?
Libraries used: iCustomDialog (V1.00), iUI8 (V.1.70). Compiler set to 64 bit, otherwise no way to run it in debug mode.
Thank you for your support.