iPhone 4 字体太大,无法容纳
我为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以推出自己的警报系统。尝试查看优秀的 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
除了将文本更改得更短之外,还没有找到真正的解决方案。确实令人恼火的是,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.