Xcode 4 Interface Builder - prevent hierarchy chan

2019-07-06 05:33发布

问题:

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.

回答1:

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.



回答2:

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.