Archive for the ‘Development’ Category

Ergänzen der Precompiled Headers (*-prefix.pch):

// DLog: DEBUG Only
#ifdef DEBUG
#   define DLog(fmt, ...) NSLog((@"%s:%d | " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#   define DLog(...)
#endif

// ALog: Always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@"%s:%d | " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

Lesen/Schreiben NSUserDefaults

Posted: 25. Januar 2014 in Development, iOS
Tags: , ,

Lesen

NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];

NSString *myString = [prefs stringForKey:@"lookupKey"];
NSInteger myInt = [prefs integerForKey:@"lookupKey"];
float myFloat = [prefs floatForKey:@"lookupKey"];

Schreiben

NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];

[prefs setObject:@"TextToSave" forKey:@"lookupKey"];
[prefs setInteger:42 forKey:@"lookupKey"];
[prefs setDouble:3.1415 forKey:@"lookupKey"];
[prefs setFloat:1.2345678 forKey:@"lookupKey"];

Video Standards

Posted: 23. Januar 2014 in Development
Tags: ,

Video Standards

Quelle: Wikipedia