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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -