iPad 中的界面方向

发布于 2024-12-14 06:35:59 字数 122 浏览 5 评论 0原文

我在 iPad 的表格的一个单元格中使用一张图像。但是当我更改方向时,不会出现正确的图像。我将图像大小设置为横向模式并提供自动调整大小的代码。但是当方向从横向更改为肖像,然后单元格中的图像未满。有什么方法可以解决这个问题?请帮忙。

I am using one image in one cell of table in iPad.But when I change the orientation then the proper image is not coming.I set the image size for landscape mode and give the code to autoresize.But when orientation is changed from landscape to portrait then the image in cell is not coming full.What is the way to solve this problem?Please help.

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

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

发布评论

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

评论(1

阿楠 2024-12-21 06:35:59

您使用的是UIImageView吗?如果是这样,您设置了 autoresizingMaskUIView 属性,您可能需要 UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)和 contentMode为了图像?

Are you using a UIImageView? If so have you set the autoresizingMask (UIView property, you probably want UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight), and the contentMode for the image?

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