如何将 MPMediaPickerController 取消按钮放在左侧?

发布于 2024-09-06 07:18:19 字数 408 浏览 5 评论 0原文

我正在开发一个应用程序,到目前为止所有取消按钮都位于导航项的左侧。我认为这是标准的,这就是苹果对其应用程序所做的事情。直到我遇到 MPMediaPickerController,它的导航项右侧有取消按钮。

我可以把它移到左边吗?我不愿意将所有其他取消按钮移至右侧,因为没有其他应用程序具有此功能。但让它从一种观点转向另一种观点就更糟糕了。

令人烦恼的是,MPMediaPickerController 的文档添加了以下内容:

注意:MPMediaPickerController 类仅支持纵向模式。该类确实支持子类化。该类的视图层次结构是私有的;不要修改视图层次结构。

我并不急于发布这个应用程序,所以如果可以的话,我愿意冒着被拒绝的风险移动这个按钮,因为这将极大地改善用户体验。

I'm developing an app and so far all cancel buttons have been on the left side of the navigation item. I thought this was standard and that's what Apple do with their apps. That is until I ran into the MPMediaPickerController which has it's cancel button on the right side of the navigation item.

Is there anyway I can move this to the left side? I'm reluctant to move all my other cancel buttons to the right as no other apps have this. But having it switch sides from one view to the next is even worse.

Annoyingly, the docs for the MPMediaPickerController adds this:

Notes: The MPMediaPickerController class supports portrait mode only. This class does support subclassing. The view hierarchy for this class is private; do not modify the view hierarchy.

I'm in no great hurry to release this app so I'm willing to risk rejection for moving this button if I can as it will vastly improve the user experience.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白云悠悠 2024-09-13 07:18:19

我找不到方法来做到这一点,不得不更改其他区域的用户界面。

I couldn't find a way to do this and had to change my user interface in other areas.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文