Why can't I move iOS storyboard elements around?

后端 未结 9 1080
别那么骄傲
别那么骄傲 2021-02-05 04:01

I am trying to work with storyboards in iOS, and it\'s driving me nuts because I can\'t drag storyboard elements around in the UI to clean up the visual structure of the relatio

9条回答
  •  鱼传尺愫
    2021-02-05 04:41

    As a partial solution when using Google remote desktop:

    1. Drag a new item from the Object library. This is working normally until you drop the item. Afterwards you can't drag the item again.

    2. Open the outline view. See picture at https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Art/2_outlineview_toggle_2x.png

    Than drag the item from there. You can drag it and when dropped, the original item will be moved to the correct place. The problem with that is no help lines are presented in order to align the item and no accurate position can be done.

    1. Use the Size inspector. See pic at https://koenig-media.raywenderlich.com/uploads/2015/11/46_vc_size-e1448290482977-421x320.png

    From there you can set the correct size and position of the item.

提交回复
热议问题