iOS 7 Programming Fundamentals by Matt Neuburg

iOS 7 Programming Fundamentals by Matt Neuburg

Author:Matt Neuburg
Language: eng
Format: epub
Tags: COMPUTERS / Programming / Apple Programming
ISBN: 9781491945568
Publisher: O’Reilly Media
Published: 2013-10-10T16:00:00+00:00


Fix-it and Live Syntax Checking

Xcode’s extremely cool Fix-it feature can actually make and implement positive suggestions on how to avert a problem. To summon it, click on an issue badge in the gutter. Such an issue badge will appear after compilation if there’s a problem.

For instance, in Figure 9-3 I’ve omitted the @ before an Objective-C NSString literal, and the compiler is complaining (because what I’ve typed is a C string literal, a very different thing). By clicking on the warning badge in the gutter, I’ve summoned a little dialog that not only describes the mistake but tells me how to fix it. Not only that: it has tentatively (in grey) implemented that solution; it has inserted the missing @ into my code. Not only that: if I press Return, or double-click the “Fix-it” button in the dialog, Xcode really inserts the missing @ into my code — and the warning vanishes, because the problem is solved. If I’m confident that Xcode will do the right thing, I can choose Editor → Fix All in Scope (Command-Option-Control-F), and Xcode will implement all nearby Fix-it suggestions without my even having to show the dialog.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.