So:
@interface UIDevice (UIDeviceAppIdentifier)
@property (readonly) NSString *deviceApplicationIdentifier;
@end
@implementation UIDevice (UIDeviceAppIdentifier)
- (NSString *) deviceApplicationIdentifier
{
static NSString *name = @"a string identifying your application, like its name";
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *value = [defaults objectForKey: name];
if (!value)
{
value = (NSString *) CFUUIDCreateString (NULL, CFUUIDCreate(NULL));
[defaults setObject: value forKey: name];
[defaults synchronize]; // handle error
}
return value;
}
@end
die iOS-Dokumentation mehr oder weniger beschreibt die Verwendung von CFUUIDCreate() eine Kennung erstellen und schlägt vor, UserDefaults Verwendung zu speichern.
Ich wähle diese Frage als Wegthema zu schließen, weil sie über die Ablehnung Politik von Apple. Siehe auch: [Warum wir nicht Kundensupport für Ihre Lieblingsfirma sind] (https://meta.stackoverflow.com/questions/255745/why-were-not-customer-support-of-your-favorite-company). – FelixSFD