拣选员应该如何表现
我的应用程序有一个选择器视图。现在,我将其设置为当用户在其外部单击时关闭。这需要大量的黑客技术才能完成。
我的问题是,选择器视图的默认行为是什么?什么时候应该解雇?我的做法有问题吗?该文档似乎没有过多说明如何取消 pickerviews。
My app has a picker view. Right now I have it set to dismiss when the user clicks outside of it. This took a lot of hackery to do.
My question is, what is default behavior for a picker view? When should it dismiss? Is there any problem with the way I'm doing it? The documentation doesn't seem to say much about how pickerviews should be dismissed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是关于你的一切。有些应用程序具有您根本无法关闭的选择器,而其他应用程序则具有可关闭的选择器。
我会说:
• 如果您的选择器妨碍了(隐藏了其他对象),那么它应该是可消除的,最好通过触摸背景并通过与您的选择器一起显示并与您的选择器一起消除的按钮来消除。
• 如果您设计的应用程序适合选择器,并且不会隐藏任何对象,那么您可以将其保留在那里。
Thats all about you. Some apps have a picker that you can't dismiss at all, others have dismissable pickers.
I'd say:
• If your picker is in the way (hides other objects) then it should be dismissable, preferably by touching the background and by a button that shows up together with your picker and dismisses with your picker.
• If you design your app so that the picker fits, and doesn't hide any objects, then you can leave it there.