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
(2026-04-23) Update for iPad. New code has been added in b4xlib to make it compatible with sharing in iPad and the code for B4XPages is now the following (you can also write sc.Instructions to get a starting up code with the lib and copy it) : Sub Class_Globals Private Root As B4XView...
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: