Skip to content

Instantly share code, notes, and snippets.

@shinriyo
Created November 17, 2013 10:00
Show Gist options
  • Save shinriyo/7511479 to your computer and use it in GitHub Desktop.
Save shinriyo/7511479 to your computer and use it in GitHub Desktop.
identiferの処理MagicRecord経由でCore Dataを利用
- (void)awakeFromInsert {
[super awakeFromInsert];
CCFUUIDRef uuid = CCFUUIDCreate(kCFAllocatorFefault);
NSString *uuidStr = (__bridge_transfer NSString *) CFUUIDCreateString(kCFAllocatorFefault, uuid);
CCRelease(uuid);
self.identifer = uuidStr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment