Skip to content

Instantly share code, notes, and snippets.

Artur Machura Chinchilla86

View GitHub Profile
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.