iPad 中的界面方向
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是
UIImageView
吗?如果是这样,您设置了autoresizingMask
(UIView
属性,您可能需要UIViewAutoresizingFlexibleWidth
|UIViewAutoresizingFlexibleHeight
)和 contentMode为了图像?Are you using a
UIImageView
? If so have you set theautoresizingMask
(UIView
property, you probably wantUIViewAutoresizingFlexibleWidth
|UIViewAutoresizingFlexibleHeight
), and the contentMode for the image?