NSThread number on iOS? [duplicate]
This question already has an answer here: po [NSThread currentThread] 2 answers When you print a NSThread's description, you get something like this: <NSThread: 0x1e511b70>{name = (null), num = 1} Is this "num" available somehow? This is for debugging only, so it does not need to clear Apple's approval process. That number is actually an ivar in NSThread's private implementation class. The class is _NSThreadInternal , and its name is "_private". Inside that object, the ivar is seqNum . You can pull it directly if you're willing to rely on undocumented key paths. This'll do it (and good call