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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -