ios - NSString to NSUUID convert -


how convert nsstring nsuuid ? got answer conversion of, nsuuid nsstring vice versa not found.like string @"12033030303" alloc nsuuid using string appreciated

@"12033030303" not possible convert nsuuid, universally unique identifier has specification (for example @ wikipedia), means random string can't converted nsuuid.

initwithuuidstring should method you're looking for, works if uuid valid.

nsuuid *uuid = [[nsuuid alloc] initwithuuidstring:@"a5d59c2f-fe68-4be7-b318-95029619c759"]; 

Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -