Xcode 4 Interface Builder - prevent hierarchy chan

2019-07-06 05:17发布

I have a UIImageView and as I am positioning it, it keeps wanted to become a subview of other views on the viewController. How do I stop it from doing this as I only want to reposition it and have it stay in the current hierarchy. As of now, I have to enter the coordinates manually which is a pain.

2条回答
乱世女痞
2楼-- · 2019-07-06 05:48

Unfortunately, this is an oversight on the part of the Developer Tools team at Apple. You should file a bug http://bugreport.apple.com.

The best—albeit still annoying—way to get around this is to just use the arrow keys to nudge the view around. Or drag the view as close as you can get it without it being embedded in another view, then use the arrow keys to nudge the view around manually.

查看更多
我想做一个坏孩纸
3楼-- · 2019-07-06 05:56

To complete @Lucase's answer, you can double click the element in the 'left icon side bar' to make it movable by arrow key, elaborated in another post.

查看更多
登录 后发表回答