Xcode not showing run devices - ios

I have a quick question regarding XCode that I have been trying to solve for the last week. If you look at the screenshot my IOS devices are not being displayed in the toolbar by the run button. Could somebody show me how to display this? I'm trying to test on different devices and also trying to compile my source code (i know how to compile). Any help with this problem would be greatly appreciated!

I've seen this happen because of layout issues where xcode would hide the bar with the devices if the screen is too narrow rather than displaying it beneath for example.
If playing with the size/resolution/layout doesn't help, you can go to Product > Destination > List of devices available

Related

How to resolve Autolayout issues after updating to Xcode 8.1

I have designed user interface in storyboard in Xcode 7 its working fine when i updated Xcode 8.1 and opened the storyboard the result is below.
I don't know what apple actually doing with this, When ever new update came i struggling on this kind of issue. Can some one guide me how to resolve this?
Thanks
Click on the red button that shows the problems, and see what's wrong, and fix them. Very often you just fix the frames of your views. And then you tap on the various device sizes and check if your layout works with every size.
They did make changes with new xcode 8.0, but I believe its easier then ever.
The concept is same behind only few changes.
Like before you need to do update frames, but now they make it easy so you can view a live preview of your layout without going into preview in show assistant editor.
Just click on device button and it automatically updates frames and shows you your layout.
For more information see: A Beginner’s Guide to Auto Layout with Xcode 8

Weird edge on iOS, only on some devices

I have this weird issue. Someone was working with this code in meantime but I have no idea what is changed and no idea where to search for to find fix for this. Issue is visible on this image:
![1]https://drive.google.com/open?id=0BxN6pbY6dKUYa0pjZUpPemlFcFk
As you can see edge on iphone6 has some effect applied to it, but it's not visible on iphone6s plus nor on my device (iPad air 2). It's not whole program thing, some separate views are clear on all devices. But I have no idea what this effect is and what for to search.
Every hint what to look for very appreciated.
Thanks a lot for sharing your experience.

Device And Run Icons lost in xcode 7

I have installed xcode 7 and run many apps on the same. But suddenly when i restart the xcode it hides the device header and run icons in top left bar.
Thanks in advance for help !
This is a exsisting bug with XCode 7 I see on our systems.
It happens when more than one project are open at a time.
The first Window will keep its bar, but all other will open without it. Sometimes hiding/showing the toolbar help, but that works only two times or so. Then a restart of XCode is the only cure.
Apparently you hid the toolbar. To reenable it: Select View -> Show Toolbar

GUI View Hierarchy not always visible

I recently heard about this GUI view hierarchy in Xcode. And I have used it many times. But I sometimes when I run the app, the button is not there at all.
Can anyone please tell me when exactly will the button be visible when debugging??
Only iOS 8 or better targets (simulator or hardware) get the button . You won't see it for an iOS 7 target.

iOS XCode Storyboard controls moved and now look strange in simulator

I am following the course on iOS through iTunes university and working on the calculator project. I moved the controls on the storyboard to make room for another control at the top. Everything looks fine on the storyboard but when run in the simulator, controls are bunch up, on top of each other, and some are clearly off the top of the simulator screen. This leads to the following very related questions.
How does one move controls around on the storyboard? I went to the size inspector of each control (buttons in my case) and changed the 'Y' value (increased it by 10). I did this for each control. I didn't think about it as I was doing it because as I said, all looks fine on the storyboard. Is there a better way to move controls around? I could not figure out how to grab more than one control at a time and move them. Grabbing all and moving or all but one and moving would have been ideal.
I anticipate someone is going to say, "We need more info. " How do I show the storyboard? Is there a xml file somewhere? How is the storyboard saved? How should I show the results of the simulator?
In general, what the heck is going on? Why would things look so different in the simulator?
Is there a better forum/group to ask newbie questions about iOS programming?
My specs are these:
XCode 4.5.2
Ios simulator versions set to 6.0 and iPhone
Any other info needed? Thanks in advance,
Dave
Try setting your simulated device size to 'freeform' instead of 'inferred'. This screen is a bit smaller so the controls are no longer overlapping. The latest xcode sets it by default to ios6 (screen size of iPhone 5)
edit For a better insight in xcode IDE, please refer to the documentation provided by apple (includes screenshots for clarity)
https://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/000-About_Xcode/about.html#//apple_ref/doc/uid/TP40010215

Resources