简体   繁体   中英

How to view outline of a custom UIView in a Storyboard?

I made a custom UIView for a project. I know how to insert it in a StoryBoard (as a generic view, then by specifying its class), and it compiles and runs fine. However, the custom view is rendered in the storyboard as a white rectangle without a visible border. It means that when the view is unselected, it becomes invisible on the storyboard if the window background is white. It is then very difficult to adjust its position/size, and it's going to be really painful when I will add more views.

I perfectly understand that the storyboard does not provide any kind of rendering and I'm not asking for this, but is there any solution to display the boundaries of the view as a simple border so I can still view it without having to select it ?

菜单Editor->CanvasShow bounds rectanglesShow layout rectangles中有两个选项,这正是我想要的!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM