在 iPhone 应用程序中自定义 UIPickerView

发布于 2024-12-28 17:50:17 字数 69 浏览 3 评论 0原文

我想知道增加 UIPickerView 的“选择栏”的可能性 只是为了帮助手指较大的用户

请告诉我,这可能吗

I would like to know the possibility on increasing the "selection bar" of the UIPickerView
Just to aid the users who are all having the bigger fingers

Please let me know , is that possible

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

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

发布评论

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

评论(1

春庭雪 2025-01-04 17:50:17

我认为您实际上无法对选择器视图的默认 UI 执行任何操作。您可以尝试通过这样的代码创建选择器视图的高度,将其更改为您想要的高度。

makePicker = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 120.0);

但如果你真的想增加选择栏本身的高度,我想你可能必须制作一个图像并将图像添加到选择器视图中,我怀疑这是实现你想要的东西的优雅方式。所以我还是建议改变它的高度,让它看起来更大一点

I dont think you can actually do anything about the default UI of the picker view. You can try to change the height of the picker view to your desired height by creating it through the code like this.

makePicker = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 120.0);

But if you really want to increase the height of the selection bar itself, i think you might have to make an image and add the image to the picker view which i doubt is an elegant way of achieving what you want. So i would still suggest changing the height o it to make it look a little bigger

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