Kastri icon indicating copy to clipboard operation
Kastri copied to clipboard

Demo\FilesSelector is not working under iOS 14

Open theodore74 opened this issue 4 years ago • 9 comments

I am using RAD 10.4.2 with iPhoneX (OS ver 14) Just deploy FilesSelector demo to iphone and it get nothing.

Any advice? Tks.

theodore74 avatar Oct 15 '21 01:10 theodore74

What do you mean by "it get nothing."? Does nothing at all appear? This is what I see when it starts:

image

DelphiWorlds avatar Oct 15 '21 01:10 DelphiWorlds

Thanks for quick response. Of course, it should be. What I mean is click pics, popup a empty content form, nothing from MediaLibrary.

theodore74 avatar Oct 15 '21 01:10 theodore74

This is what I see when I tap the Pics button:

image

DelphiWorlds avatar Oct 15 '21 02:10 DelphiWorlds

Thanks for quick response. Here I got 0 item. I don't know what else I should do. :( What OS ver you're using for iphone?

ps: I don't see photo gallery in your screen capture.

theodore74 avatar Oct 15 '21 02:10 theodore74

I don't see photo gallery in your screen capture.

Yes, not sure why that is. I'll be looking into it

What OS ver you're using for iphone?

I tested on iOS 14.7.1 and iOS 15.0.1

DelphiWorlds avatar Oct 15 '21 03:10 DelphiWorlds

hi, have any update?

theodore74 avatar Nov 17 '21 04:11 theodore74

Not as yet, sorry. I have put it on my to-do list to attend to within the next few days.

DelphiWorlds avatar Nov 17 '21 05:11 DelphiWorlds

Is it unsolvable? RAD is good but is not friendly for iOS coding.

theodore74 avatar Dec 21 '21 03:12 theodore74

I don't know whether it is unsolvable. I need to take a look at it. Incidentally, for this issue it would not matter if you were using Xcode, the situation would be the same

DelphiWorlds avatar Dec 21 '21 03:12 DelphiWorlds

Apologies that it has taken a while to address this, however I've just pushed some changes that will show the relevant picker for images in the media gallery if you use TFileKind.Photo for the FileKinds property.

Note that this method does not actually give direct access to the image file, however using the OnImageStream event you can either use the image in the stream however you need to (in the demo the images are loaded into instances of TImage), and the original filename of the image is supplied in that event, so if you desire, you can save it to a file somewhere.

DelphiWorlds avatar Jun 11 '23 22:06 DelphiWorlds