Skip to content

Instantly share code, notes, and snippets.

@SpacyRicochet
Created October 8, 2012 14:10
Show Gist options
  • Select an option

  • Save SpacyRicochet/3852731 to your computer and use it in GitHub Desktop.

Select an option

Save SpacyRicochet/3852731 to your computer and use it in GitHub Desktop.
Useful XCode snippets
// 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