Created
October 8, 2012 14:10
-
-
Save SpacyRicochet/3852731 to your computer and use it in GitHub Desktop.
Useful XCode snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DebugView: Adds a Quartz border around the view. | |
| // shortcut: debugView | |
| // scope: Function or Method | |
| // Don't forget to #import <QuartzCore/QuartzCore.h>. | |
| <#view#>.layer.borderColor = [UIColor cyanColor].CGColor; | |
| <#view#>.layer.borderWidth = 1.f; | |
| // Localized String: Makes it easier to start localizing from the get-go. | |
| // shortcut: localizedString | |
| // scope: Code Expression | |
| NSLocalizedString(@"<#key#>", nil) | |
| // Pragma Mark: Makes it easier to organize your code | |
| // shortcut: pragmamark | |
| // scope: All | |
| #pragma mark <#description#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment