Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ca1c4482ef
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.429 kb
//
// NSString+PKUUID.m
// PKToolbox
//
// Created by Pavel Kunc on 21/05/2012.
// Copyright (c) 2012 Fry-it, Limited. All rights reserved.
//
#import "NSString+PKUUID.h"
@implementation NSString (PKUUID)
+ (NSString *)pk_UUID {
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
NSString *str = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid);
CFRelease(uuid);
[str autorelease];
return str;
}
@end
Jump to Line
Something went wrong with that request. Please try again.