Hi,
You can do yourself with categorie
//
// NSString+UUID.h
// VerbaTool
//
// Created by Jean-Michel MARINO on 28/06/11.
// Copyright 2011 STGA. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (NSString_UUID)
+ (NSString*)stringWithUUID;
@end
// NSString+UUID.m
// VerbaTool
//
// Created by Jean-Michel MARINO on 28/06/11.
// Copyright 2011 STGA. All rights reserved.
//
#import "NSString+UUID.h"
@implementation NSString (NSString_UUID)
+ (NSString*)stringWithUUID {
CFUUIDRef uuidObj = CFUUIDCreate(kCFAllocatorDefault);//create a new UUID
//get the string representation of the UUID
NSString *uuidString = (NSString*)CFUUIDCreateString(kCFAllocatorDefault,
uuidObj);
CFRelease(uuidObj);
return [uuidString autorelease];
}
@end
Le jeudi 26 juillet 2012 11:46:06 UTC+2, tazkeox a écrit :
> Hi everyone,
> Easy APNs use the device unique identifier property to register users into
> data base. But since March, Apple reject apps use this way
> (because uniqueIdentifier is deprecated in iOS 5.0). Apple hasn't provided
> a friendly Obj-C replacement, instead recommending CFUUIDCreate and
> NSUserDefaults.
> So, a good alternative is the class BPXLUUIDHandler developed by
> blackpixel : https://github.com/blackpixel/BPXLUUIDHandler.
> I would like to know if we can use this new unique identifier with Easy
> APNs and if a update is scheduled ?
> Thanks !
> tazkeox.