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
Post a Comment