按钮自动调整大小
谁能帮我解决 iPhone 应用程序中使用的小按钮/图标。我对应用程序世界相当陌生,并尝试为我的应用程序制作一些按钮(即复选框)。我不确定我们是否应该从 50X50 开始并在应用程序中自动调整大小,或者只是有一个完全适合空间的 20X20...
对此提供任何帮助,我们将不胜感激。
Can anyone help me with the small buttons/icons used within the iphone apps. I am fairly new to the app world and trying to make some buttons(viz the tick box) for my app. I am not sure if we should start with a 50X50 and autoresize in the app or just have a 20X20 which exactly fits the space...
Any help on this is appreciated..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 Apple 的说法,按钮的宽度应至少为 44 像素,高度应为 44 像素(除非它们单独存在且附近没有任何东西,在这种情况下,按钮的高度应为 22 像素)。如果您在 IB 中布置按钮,我建议您正确放置它们,并将其“弹簧和支柱”设置为自动调整大小。
According to Apple, buttons should be at least 44px wide, and 44px high (unless they're by themselves with nothing near them, in which case 22px high). If you're laying out buttons in IB, I'd say get them placed correctly, and set their 'springs and struts' to autosize for you.
尝试这样做,
将您需要的 50*50 按钮放入您的项目中,并将图像添加到您的界面生成器中,
选择您最近在按钮属性中放入的图像,然后通过 ctrl+3 选择按钮大小
并将其设置为 20*20 它可以工作,它也适合我...
Try to do like this,
Put 50*50 button that you need in your project ,and add an image to your interface builder,
select the image that you put recently in Button attributes and select button size by ctrl+3
and set it to 20*20 it works ,it works for me also...