I use in a b4i app this library I created.
The library uses for iOS in iPhone the Activity View Controller included in the iPhone library.
www.b4x.com
It works flawlessly in iPhone but in iPad it does not show at all. To be more precise it shows on the top an empty area (you can download in the above link the "Social Share.zip" and try the project in appetize.io) .
Google mentions this in the search:
On iPad, a UIActivityViewController must be presented as a popover using popoverPresentationController, unlike iPhone, where it can be presented modally. Failure to specify a source view or rectangle will cause it not to appear, as explained in the Apple Documentation.
it also shows this snippet:
and presents also these links
stackoverflow.com
Is there a way to present in iPad with NativeObject what is presented above?
Implementaion in github:
The library uses for iOS in iPhone the Activity View Controller included in the iPhone library.
[B4X] - B4A & B4i - Social Share Library
(2020-06-09) SocialShare library is now b4xlib (B4A & B4i). The old code for B4A is shown further bellow (it has changed a bit) and for B4XPages is the following: Sub Class_Globals Private Root As B4XView Private xui As XUI Private sc As SocialShare End Sub Public Sub...
It works flawlessly in iPhone but in iPad it does not show at all. To be more precise it shows on the top an empty area (you can download in the above link the "Social Share.zip" and try the project in appetize.io) .
Google mentions this in the search:
On iPad, a UIActivityViewController must be presented as a popover using popoverPresentationController, unlike iPhone, where it can be presented modally. Failure to specify a source view or rectangle will cause it not to appear, as explained in the Apple Documentation.
it also shows this snippet:
Swift:
if let popoverController = activityViewController.popoverPresentationController {
popoverController.sourceView = sender // button, view, etc.
popoverController.sourceRect = sender.bounds // or specific area
}
present(activityViewController, animated: true)
and presents also these links
Activity View Controller not showing the entire popup
I am trying to make a drawing app and I want to add the activity view controller. It works on the iPhone, but it will not show the entire view controller on the iPad. I have tried many different
Is there a way to present in iPad with NativeObject what is presented above?
Implementaion in github:
Last edited: