0

我是这里的新手,

在 XCode 4 的故事板上编辑滚动视图内容时,您必须来回拖动以“查看”并在 iphone 屏幕大小的视图控制器中编辑内容。

有没有办法在外面直接编辑滚动视图内容,这样我就不用不断地来回小心地移动了?现在让我发疯:)

谢谢!

4

1 回答 1

1

You can also drag the scroll view content (which should be a single UIView or its subclass) out of the scroll view by selecting in the view hierarchy tree on the left of the storyboard editor (should be the only view that is a subview of the scroll view) and dragging it to, say, the top of the list to be on the same level (leftmost) as the root view (which should be the topmost item in that hierarchy). Then, you can select your content view. It should appear in the storyboard. When you are done editing it, drag it back below the scroll view in the view hierarchy list (it becomes the scroll view's content view at that point).

于 2012-07-29T03:41:39.667 回答