Monday, June 13, 2011

Conversion between NSString and CFStringRef ?

Its a simple typecast conversion !


Convert NSString to CFStringRef


NSString *test = @"Everyone is created equal.";
CFStringRef string =  (CFStringRef) test;


Convert  CFStringRef to NSString

NSString *backToNSString =  (NSString *) string;


No comments:

Post a Comment