Skip to content

Instantly share code, notes, and snippets.

Artur Machura Chinchilla86

Block or report user

Report or block Chinchilla86

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Chinchilla86
Chinchilla86 / Projectname-prefix.pch
Last active Dec 30, 2015
This small gist helps you to access localized strings. Instead of typing a long function name, you can define your preferred (shorter or longer) one.
View Projectname-prefix.pch
// We use a shorter function to access localized strings
#define AMLocalized(key) NSLocalizedString(key, nil)
// Or even shorter
#define _(key) NSLocalizedString(key, nil)
// You can use every allowed function name you want
#define Franz(key) NSLocalizedString(key, nil)
You can’t perform that action at this time.