How can I make my UIView visible in Xcode's Storyboard editor?

半城伤御伤魂 提交于 2020-01-15 11:49:06

问题


Please have a look at the screenshot that shows a part of a storyboard in Xcode. It is one controller. On the same level as the controller there are two UIViews "Date Picker View" and "Input Accessory View". In the controller itself, they are shown in the bottom toolbar (see 2nd screenshot - the two icons to the right are tiny previews of the the views). But how can I edit them? I cannot get them on the screen! I know they are there but I'd like to edit them (used to work before I made them parallel elements of the controller)! I tried right clicking, long clicking, zooming, panning, double clicking - nothing. If I drag one of the views into the controller's view, I can see them. There are also outlets in the controller, referencing the views and the view can be used from code just fine. But editing them seems to have become impossible.


回答1:


You can select them and edit their properties in the inspector, but there is no way to visually edit them short of physically moving them into one the scenes, editing them, and moving them back.



来源:https://stackoverflow.com/questions/10840793/how-can-i-make-my-uiview-visible-in-xcodes-storyboard-editor

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