且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 UIAutomation 从 UIImagePickerController 中选择图像

更新时间:2023-01-28 18:10:20

所以,我想通了.呃.我只需要访问可见的单元格并将水龙头发送到其中一个.像魅力一样工作.

So, I figured this out. Duh. I just needed to access the visible cells and send the tap to one of those. Works like a charm.

window.collectionViews()[0].visibleCells()[0].tap();

我希望这对其他人有帮助!

I hope this helps someone else!