Skip to content

Instantly share code, notes, and snippets.

@subdigital
Created January 5, 2013 21:59
Show Gist options
  • Save subdigital/4463913 to your computer and use it in GitHub Desktop.
Save subdigital/4463913 to your computer and use it in GitHub Desktop.
What are your favorite Xcode Snippets? Add them in the comments.
// Property Nonatomic Strong
// Platform: All
// Completion Scopes: ClassInterfaceMethods
@property (nonatomic, strong) <# class_name #> *<# variable_name #>;
@aijaz
Copy link

aijaz commented Jan 11, 2013

These are great ideas. My favorite ones:

nss

NSString 

nsf

[NSString stringWithFormat:@"<#format#>", <#values#>]

nsl

NSLocalizedString(@"<#key#>", @"<#comment#>")

@djibouti33
Copy link

Quick log (qlog)

NSLog(@"<#message#>");

Log file and method name (method):

NSLog(@"%s", __PRETTY_FUNCTION__);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment