如何去除 iPad 日期选择器后面的黑点背景
我为 iPhone 开发了一个应用程序。我已将同一个应用程序移植到 iPad 上。
所有视图都运行良好。
但日期采摘者周围有一个长长的黑暗背景。
即使我在 IB 尺寸检查器中更改了尺寸,它也没有改变
我应该如何去除这个黑点?
I developed an application for iPhone. I have ported this same app to iPad.
All the views are working perfectly.
But the date pickers have a long dark back ground around them.
It doesn't change even I changed size in size inspector of IB
How should i remove this dark spot?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个:
Try this:
你好,Ur 的 Truly Prasad,
实现 UIPickerView 的更好方法,有两种方法可以显示 UIPicker 视图,其中更可取
1)您可以将子视图放在 UIAlertview 上
以下代码。
更多信息,您可以转到此处的参考链接
2)您可以将子视图放在UIPopview控制器上。
在这里对 UIPopovercontroller 中的 UIPickerview 提出同样的问题。
感谢和问候,
塞缪尔。
Hello Ur's Truly Prasad,
Better way to implement UIPickerView for that the there is two way to Display UIPicker view which is more prefrable
1) You can put subview over the UIAlertview
following code fot that.
More that you can go to refrence link here
2) You can put subview over the UIPopview controller.
and same question for the UIPickerview inside into UIPopovercontroller here.
Thanks and Regards,
Samuel.
问题解决了..
- 通过取消选中属性检查器中的“自动调整子视图大小”。
在界面生成器中
Problem solved..
- By Un check the 'Auto Resize Subview' in attribute inspector.
In Interface Builder