如何动态对齐 iPhone 中的 UIControls?
我正在开发一个应用程序,同样的应用程序是在Android中开发的,在Android中有一个称为布局的概念。因为如果任何隐藏的控件空间将被附近的控件占据,并且如果隐藏的控件重新出现,则附近的控件将返回到其原始位置,为出现的控件留出空间。iPhone中有类似的东西吗(xcode )。
I m developing an appliaction, same application was developed in Android, In Android there is a concept called Layout. in that if any controls hidden that controls space will be occupied by near by controls and if the hidden control reappears, the near by control will go back to its original position leaving space for the appeared control.Is there anything like that in iphone(xcode).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iPhone 中没有像 Android 那样的布局概念。您可以使用界面生成器手动放置不同的控件,并使用它们的 alpha 属性来显示/隐藏它们。如果您想让控件的外观具有依赖性,那么您必须对其进行相应的编码。
There's no such concept of layouts in iPhone like Android. You can place different controls manually using interface builder and use their alpha properties in order to show/hide them. If you want to make the controls' appearances dependent then you have to code it accordingly.