I have just started using XCode 5 and I am curious about this bar and the gradient.
I can't say I remember seeing that before version 5. I just noticed it after doing some profiling, although it's possible that it's been there all along. Even in version 4.5 for all I know.
The gradient seems to be different in each code block, so I am thinking it represents time spent in that block of code. Looking through the code, it seems to be darker in areas with loops, which is why I have that assumption.
I'm pretty sure that it is just a visual aid to let you know what scope you are in. If you mouse-over it, Xcode will highlight the scope, and if you click, all the code between the braces is hidden.
EDIT: It has been in XCode since at least version 4.
Related
When I write anything in a Swift file in Xcode 7, every time I enter an letter, a space or delete anything, the syntax highlighted words in the line go white and then back to their original color. I recorded a gif, better explaining, what I mean:
This first appeared, after I installed Alcatraz and a few plugins. After I noticed the bug, I removed all plugins and then Alcatraz, but the bug still existed. I also tried to delete the Derived Data folder as suggested in a few posts, but it didn't help.
I also created a new project, but the error occurred there too. Downloading Xcode 7.3 beta, didn't help too.
Is anyone having the same issue or knows, how to fix it? It's really annoying.
I just tried to reproduce this bug and figured I have the same issue. Since I don't use such high contrast colours for syntax highlighting, I didn't notice until now.
I presume it's not a bug only you are experiencing, so maybe you could try to file a bug report to Apple here.
This appears to be a result of the constant syntax scanning done by the text engine as you type.
If you find the effect objectionable, switch (for now) to the Default theme (or some other theme that has a white background) instead of the black background you're currently using; it is not noticeable there.
When I am writing a new line of code in Xcode 6, the tab indents across half the screen. Does anyone know how to fix this so that it is only indenting a few spaces? I have been looking around online but hadn't really found anything so I didn't know if this was a common issue, although it seems like it would be.
I'm newbie to iOS programming and I'm having a little trouble with UIComponents. I don't know why, but they aren't working properly. This images illustrates it:
It's weird because I've just drop the elements and in some cases, I change the font but not any big deal. As you can see, my labels and the "Register" button don't show up. The worst is that the log don't say anything, so I can't know what's going on. I cleaned the project, but it doesn't work.
Any clue what's wrong? It's not the number of lines or the value of alpha, I checked that
Thanks!
I want to have in my app some nice slide navigationmanu just like in SWRevealViewController. My problem is that SWRevealViewController needs iOS 7.0 and ARC and in my project I have iOS 6.0 without ARC. Is there any way to use SWRevealViewController in my app or maybe there is any alternative to it?
You might want to take a look at ViewDeck https://github.com/Inferis/ViewDeck
It is compatible with iOS 6 and non-ARC.
I cannot tell about SWRevealViewController without ARC or iOS7 (thus I cannot directly answer your question), but I would put a lot of weight behind the following :
Over 80% of all iOS devices currently run iOS7 or greater. ARC has been available since iOS5, which is several years ago.
The mobile market is a quickly evolving one. Not upgrading will quickly lead you to a dark path where you'll end up fighting a losing battle. I understand that your project probably has limitations, but converting right now and keeping up with new technologies will save you a lot of trouble (for instance, trying to make a newer component work with your specific setup).
I would add, the same goes for AutoLayout. If you aren't using it already, you should start, NOW. Rumor has it the next iPhones will vary in size, and the legacy way of handling visuals cannot scale correctly (perhaps the whole reason AutoLayout was created is to prepare this change).
So in short, I wouldn't recommend adapting a new component to your old project, but rather updating your old project to make it modern. You'll end up saving a lot of time.
I could get flamed for asking this, but here goes anyway...
Does anyone know of a coding app that you can use on an iPad and that allows you to fold your code? I can't find one.
I'll delete the question quite happily if it's judged inappropriate for SO :)
Thanks.
Xcode
You can fold code, by highlighting over the start of a code block, and selecting the black arrow.
There is also a menu providing more options (with keyboard shortcuts)
TextWrangler/BBEdit
Same principle, but you don't have the integrated development environment that Xcode has