xcode - How do i use this code to Display the UUID in a Label? -


can willing explain steps beginer me? trying lean things seem above head :( lol

here code have, need label display uuid right application opened. (i using storyboard)

code:

+ (nsstring *)createuuid {     nsstring *uuidstring = nil;     cfuuidref uuid = cfuuidcreate(null);     if (uuid) {     uuidstring = (nsstring *)cfbridgingrelease(cfuuidcreatestring(null, uuid));     cfrelease(uuid); } return uuidstring; 

}

try nslogging uuid string if correct add yourlabel.text = uuidstring. guessing have connected labels correctly. if yes, should work.


Comments

Popular posts from this blog

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -