iOS Question How to present PHPickerViewController over a B4XPage (not native Page)

madrigal115

Member
Licensed User
Hello,

I am trying to use PHPickerViewController inside a B4XPages project (B4i).

I don't want to present it over a native page, but directly over the current B4XPage.

I followed this tutorial:
https://www.b4x.com/android/forum/threads/phpickerviewcontroller-ios-14-0.138117/

When I try to present the picker, I get this error:

-[B4IPanelView presentViewController:animated:completion:]: unrecognized selector sent to instance
I understand that I should not call presentViewController on a Panel.

My question is:
What is the correct way to present PHPickerViewController over a B4XPage?
 
Solution
Hello,

I am trying to use PHPickerViewController inside a B4XPages project (B4i).

I don't want to present it over a native page, but directly over the current B4XPage.

I followed this tutorial:
https://www.b4x.com/android/forum/threads/phpickerviewcontroller-ios-14-0.138117/

When I try to present the picker, I get this error:

-[B4IPanelView presentViewController:animated:completion:]: unrecognized selector sent to instance
I understand that I should not call presentViewController on a Panel.

My question is:
What is the correct way to present PHPickerViewController over a B4XPage?
The issue was resolved as follows:
I used the following method:
NativeObjectMe.RunMethod("showPicker:"...

madrigal115

Member
Licensed User
Hello,

I am trying to use PHPickerViewController inside a B4XPages project (B4i).

I don't want to present it over a native page, but directly over the current B4XPage.

I followed this tutorial:
https://www.b4x.com/android/forum/threads/phpickerviewcontroller-ios-14-0.138117/

When I try to present the picker, I get this error:

-[B4IPanelView presentViewController:animated:completion:]: unrecognized selector sent to instance
I understand that I should not call presentViewController on a Panel.

My question is:
What is the correct way to present PHPickerViewController over a B4XPage?
The issue was resolved as follows:
I used the following method:
NativeObjectMe.RunMethod("showPicker:", Array(B4XPages.GetNativeParent(B4XPages.GetPage("Mainpage"))
 
Upvote 0
Solution
Top