iPhone 4 字体太大,无法容纳

发布于 2024-10-16 15:33:32 字数 292 浏览 1 评论 0原文

我为 iPhone 开发了一个应用程序,显示带有两个按钮的 UIAlertView。一张写着“取消”,一张写着“发送挑战”。

这在 iPhone 上运行良好。但在 iPhone 4 上,“发送挑战”被截断为“发送挑战...”

鉴于 iPhone 4 应该与 iPhone 完全相同,只是像素数量是 iPhone 的两倍,因此文本似乎很奇怪也没有放大到两倍大小。关于如何修复有什么想法吗?我已经在几个地方看到过这种情况,但在大多数其他地方,我可以通过添加一些像素来更改标签大小来解决它。我不认为我可以用 UIAlertView 做到这一点。

I've developed an application for the iPhone, showing a UIAlertView with two buttons. One that says "Cancel" and one that says "Send Challenge".

This works fine on the iPhone. But on the iPhone 4, the "Send Challenge" gets truncated to "Send Challe..."

Seeing as how the iPhone 4 is supposed to be exactly the same as the iPhone just with twice as many pixels, it seems odd that the text isn't scaled up to be exactly twice the size as well. Any thoughts on how to fix? I've seen it happen in several places, but most of the other places, I was able to get around it by changing the label size by adding a few pixels. I don't think I can do that with a UIAlertView.

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

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

发布评论

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

评论(2

驱逐舰岛风号 2024-10-23 15:33:32

您可以推出自己的警报系统。尝试查看优秀的 MBProgressHUD,了解如何从类似的内容开始

You can roll your own alert system. Try looking at the excellent MBProgressHUD for tips on how you might be able to start with something like this

挽清梦 2024-10-23 15:33:32

除了将文本更改得更短之外,还没有找到真正的解决方案。确实令人恼火的是,iPhone 4 的性能并不完全是 iPhone 的 2 倍。

Haven't found a real solution to this other than changing the text to be shorter. Really annoying that the iPhone 4 isn't exactly 2X from the iPhone.

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