Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I move iOS storyboard elements around?

Tags:

xcode

ios

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 relationships. Should I be able to move them around? If so, what might I be doing wrong?

I should note I am accessing the Mac environment via RealVNC on Windows, which might have something to do with it, and I have little choice in the matter, unfortunately. But I have no problems moving UI elements around within a view. It's just the top-level storyboard views that I can't rearrange.

EDIT: I've dropped the storyboard tag, since this seems to affect all top-level views and windows in my Xcode editor, not just those belonging to storyboards.

like image 277
Marcelo Cantos Avatar asked Jan 16 '12 03:01

Marcelo Cantos


People also ask

How do I move elements in XCode?

You can use the object navigator / tree-view on the left to select your items, then you can move objects around using the x/y/w/h properties on the size inspector. Another solution could be to set the items you don't want to drag around to hidden while you're dragging other elements around.

Is SwiftUI or storyboard easier?

Storyboard Advantages over SwiftUIIt is easier to use Storyboard as a beginner . Storyboard consist of Xib and custom View which can be reusable in the projects. It is easier to build an app as there is only drag and drop of the elements of the storyboard.

How do you edit storyboard on Iphone?

In Xcode 9.2, simply go to your Storyboard and go to the bottom, Click View As and choose a device you like.

Will SwiftUI replace storyboard?

There is no direct way of migrating from storyboard to swift UI. This compels a developer to continue the use of the storyboard for existing apps and in lower versions. Since, it is very new so there is less community support which is not the case for storyboard.


1 Answers

I ran into this problem using a Synergy client on a mac. I assume it has something to do with the mouse lag and how the storyboard registers click and drag. My solution for now is to use a mouse connected directly to the mac, but it would be nice if the Apple would fix this issue in future xcode releases.

like image 107
Tim Cooper Avatar answered Sep 17 '22 16:09

Tim Cooper