iOS Question Problem with Sharing

so27

Active Member
Licensed User
Longtime User
Hello everyone,

I have a problem with the share function. On the iPhone it all works great, but on the iPad only a white bar appears. Does anyone know what that could be?

B4X:
            Dim avc As ActivityViewController
            avc.Initialize("avc", Array(MeinText, LoadBitmap(File.DirAssets, "gu_screen.PNG")))
            avc.Show(Page1, Page1.RootPanel)

ipados.PNG

ios.PNG
 

so27

Active Member
Licensed User
Longtime User
Better to set the FromView parameter to the BarButton.
How do I put it on BarButton? In my code it is used as follows.

B4X:
Sub Page1_BarButtonClick (Tag As String)
        
    Select Tag
        
        Case "about"
            
    
        Case "share"
            Dim MeinText As String
      
            MeinText="»Grundumsatz« verrät Dir Deinen Grundumsatz ..."
                            
            Dim avc As ActivityViewController
            avc.Initialize("avc", Array(MeinText, LoadBitmap(File.DirAssets, "gu_screen.PNG")))
            avc.Show(Page1, Page1.RootPanel)
    End Select
End Sub

As I understand it, the problem has to be with the Page1.RootPanel.
 
Upvote 0
Top