UIView 辅助功能问题

发布于 2024-10-06 01:38:36 字数 336 浏览 0 评论 0原文

我开发了一个 iPhone 应用程序,其中大部分都可以访问,但我对我所做的一件事有疑问。

当用户单击应用程序中的设置按钮(它有一个主菜单,其中有一堆用于各种应用程序的按钮)时,我在顶部添加一个 UIView 并使背景屏幕变暗。不幸的是,对于盲人来说,这个 UIView 不会变得“活动”,即他们仍在背景屏幕上导航。

我最初使用 addSubview: 添加了 UIView,然后尝试了 insertSubview: atIndex: 但都没有按预期运行。

编辑:更多信息此屏幕上有文本字段和一个按钮,也许我可以改为激活其中一个或其他内容?但不知道我会怎么做。

I've developed an iPhone App and most of it is accessible but I have an issue with one thing I do.

When the user clicks the settings button in the App (it has a main menu with a bunch of buttons for various Applications) I add a UIView on the top and and darken the background screen. Unfortunately for a blind person this UIView doesn't become "active", ie they are still navigating around the background screen.

I initially added the UIView using addSubview: and then tried insertSubview: atIndex: but neither have operated as expected.

Edit: Further information there are text fields and a button on this screen, perhaps I could instead make one of them active or something?? No idea how I would do this though.

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

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

发布评论

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

评论(2

撩心不撩汉 2024-10-13 01:38:36

使用becomeFirstResponder怎么样?它使接收该消息的控件和输入的接收器处于活动状态。对于 UITextView 等,它会弹出键盘。

How about using becomeFirstResponder? It makes the control receiving this message active and the receiver of input. For UITextView etc. it brings up the keyboard.

傲性难收 2024-10-13 01:38:36

我没明白你在说什么,但我认为顶部添加的视图可能有问题。

做一件事,如果您使用界面生成器添加了视图,则选择该视图并单击菜单栏中的布局菜单,然后选择“发送到底层”。

否则,如果您通过代码添加它,则将代码编写为

[self.view sendSubViewToBack:addedView];

问候,

Satya

I didn't get what you are saying, but I thought there may be problem with the view added on the top.

Do one thing, if you added the view using interface builder then select the view and click on Layout menu in the Menu bar and select "Send to Back".

or else if you add that through code, then write code as

[self.view sendSubViewToBack:addedView];

Regards,

Satya

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