iOS Question [Solved] Problem on IPad with Actionsheet and SelectFromPhotoLibrary

schimanski

Well-Known Member
Licensed User
Longtime User
On the new IPad Pro, the following code does not work, only on iphone-devices:

B4X:
..
Dim Profilbild as Camera
..
Sub ivProfilbild_Click
    Dim ProfilbildMenu As ActionSheet
    ProfilbildMenu.Initialize("Profilbild", "", "Abbrechen", "", Array As String ("Profilbild ändern"))
    ProfilbildMenu.Show(pageInfo.RootPanel)
    Wait For Profilbild_Click (item As String)
    Select item
        Case "Profilbild ändern"
            Profilbild.SelectFromPhotoLibrary(Sender, Profilbild.TYPE_IMAGE)
    End Select
End Sub


This code works:
B4X:
..
Dim Profilbild as Camera
..
Sub ivProfilbild_Click
       Profilbild.SelectFromPhotoLibrary(Sender, Profilbild.TYPE_IMAGE)   
End Sub

I have tried to call sleep before opening the PhotoLibrary, but nothing. Why is it a problem to call SelectFromPhotoLibrary on an iPad out of an ActionSheet?

Thanks for help...
 

schimanski

Well-Known Member
Licensed User
Longtime User
I did not mentioned, that I have to point it to a view. With Profilbild.SelectFromPhotoLibrary(imageview, Profilbild.TYPE_IMAGE), it works...
 
Upvote 0
Top