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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -