How do you reposition a Storyboard with Xcode 6 and Yosemite? - xcode

I installed the latest Xcode and Yosemite betas several days ago and have noticed a feature of Yosemite seems to be its not possible (by design or bug?) to click on a a scroll bar and drag.
This was an irritation but now I'm trying to navigate within a storyboard and there's no apparent way of moving around - there's no navigation bars, there's no arrows, pressing arrows on a MacBook keyboard does nothing, its not possible to click within the story board and move it around, there's no zoom/de-zoom button to expand/collape the Storyboard.
I've been scratching my head then getting increasingly irritated, I just can't see any way of repositioning a storyboard with Xcode and thus I can't do a thing at the moment - there are view controllers in my Storyboard not displayed on screen and I just can't get to them!

Moving around the Storyboard works the same way that it has always worked: drag with two fingers on the trackpad or click and drag the scroll bars.
If neither of those are working for you, it's a bug and you need to report it. Also consider reinstalling Yosemite and/or Xcode because I am unable to reproduce this issue.

Related

missing alignment guides in xcode interface builder

I am new to programming on the Apple Mac. I have followed a programming guide supplied in the Mac Developer Library to program a basic GUI program called TrackMix. In this program you place a textbox, a vertical slider and a button control on the view window. Initially, on dragging the specific object, say the textbox, to the window, a set of alignment guides (dotted blue lines) would automatically appear on the canvas when the object is dragged over it. I dont know what has happened, but now those guides have disappeared when I execute the same action of dragging objects to the window. When the object being dragged is over the window a small green dot, with a plus sign in it, appears on the bottom of the object. I have carefully retraced my steps to be exactly the same as stated in the Developer Library, but still the problem persist. Have I, perhaps, involuntarily changed some Xcode settings or what? I am at the end of my wits! PS: I am using Xcode 7.
You have to toggle the menu item "Editor > Canvas > Snap To Guides" in Storyboard. I hope that helps
I am not sure whether this will be helpful, but I just had the same problem and the only thing which worked was re-installing Xcode (7.3) and trashing all of the Xcode preferences.
Good luck.

No horizontal scrollbar in Xcode's Interface Builder

When I try to edit a storyboard file in Xcode (Version 5.1.1 (5B1008) under OS X 10.9.3) I can only see the vertical scrollbar. Moving around in the horizontal direction between view controllers is not possible. The horizontal bar doesn't show when I hover over it. It only briefly shows when I select past the visible area but it immediately disappears afterwards and I can only scroll by a few pixels at a time this way.
I have tried restarting XCode and the OS but it didn't help. Scrolling was possible before. It stopped working for no apparent reason this morning. I have not updated XCode nor OS X or messed with the system in any way since it was last working. Has anyone encountered this problem before? Do I need to reinstall XCode at this point?
Press Shift + Scroll Mouse this will scroll preview in horizontal
It's a not bug, it's a feature. It wouldn't be a problem if you use the Apple mouse. There is a workaround for a typical 2/3 button mouse, although it would affect all horizontal bars across the system. Just follow System Preferences->General->Show scroll bars, and select Always.
I have been struggling with this as well. The only solution I found is the following:
So there is a mini map for the storyboard that hovers over the right upper-side.
If you can't see it, just click on the "Adjust Editor Options" button and make sure Minimap is selected.
This is the best way to move around just like you are using the scroll bars.

Magic Mouse scrolling stops working after horizontal scrolling

Occasionally when I scroll horizontally in an app using the magic mouse, the current tab or page I'm scrolling on freezes and thereon in that app, scrolling is completely non-functional.
For example, if I'm using Safari and I scroll horizontally to go back to the previous link, the current tab freezes, stuck in the middle of the animation. If I close the frozen tab, the other tabs work fine, but I can't scroll vertically or horizontally in them. I have to scroll using the scrollbar. No other apps are affected and if I restart the affected application, everything goes back to normal and the mouse scrolling is functional again.
Has anybody else had this issue? Any ideas on how to fix this?
I was running Lion when this issue started. I updated to Mavericks hoping it would be fixed, but no luck. I'm currently running Mavericks GM on an iMac (latest model).
This is an issue after installing Mavericks. Go to System Preferences/General and click on Show scroll bars: Check "Always". Hope this helps.

How can I change Xcode 4.4.1's 3-finger multitouch select action within an editor?

Xcode 4.2 used to toggle between the header file and the .m file when you swiped up/down with 3 fingers in an editor window. Now excode 4.4.1 turns it into a text selection. Is there a way to change the default behavior to something else (in my case back to toggling between .h/.m)?
I got the 3 finger swipe working in Xcode 4.4 (I'm running Mountain Lion). It is possible. Try following these instructions: https://stackoverflow.com/a/7923619/472344.
I had already used these to get the 3 finger swipe working in Xcode 4.3 when I updated to Lion. It seemed to break when I updated to Xcode 4.4 and Mountain Lion. I went through all the steps again, but this time all the settings were already set correctly so I didn't have to change anything. However, now it's working for me. Give it a shot.
You can also switch between the .h and .m by using ctrl+command+UpArrow (or DownArrow).
I don't know if there is a way to change the gesture within Xcode, but usually i find if i open .h first, then .m (or the other way around) then you can swipe between them with 2 fingers right or left :)
As long as you open them in the centre and not in a new window =]

Xcode storyboard isn't visible; is it possible to zoom/pan the canvas?

I wouldn't ask if I couldn't find it anywhere else, but I've run into a problem. I have a complete storyboard built in Xcode, but I've lost it on the screen. Pressing the +/- buttons in the bottom right zoom in and out, but nothing shows up. I know the app is there because it runs fine, but all of my views are off the screen and I have no idea how to get them back. And since I'm on a desktop, there's no way to pan (maybe the same issue happens on a laptop?)
How do I get my storyboard back?
I searched for a "zoom all" in the menus but can't find one.
This is so frustrating. Grrr. I can't work on my storyboard until I can find it on the canvas. I can't find it on the canvas because I can't pan and have no idea where it is.
Right click on your storyboard file => Open As => iOS Storyboard

Resources