How can I update my interface builder project to current constraints?

限于喜欢 提交于 2019-12-12 01:03:51

问题


I have a bunch of constraints set up that work well at run time, but aren't reflected in my storyboard because of small errors in positioning the views. Is there any way I can have my storyboard / xib reset all views to acknowledge the constraints I have set up?

If this was already asked, I apologize. I'd expect this has been asked, but my queries aren't returning helpful results.


回答1:


There's an option when you click the Resolve AutoLayout Issues tab in Interface Builder called Update Frames. Also there is the opposite (and more commonly used) Update Constraints to move the constraints to whatever your frame is set to.



来源:https://stackoverflow.com/questions/21977532/how-can-i-update-my-interface-builder-project-to-current-constraints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!