How to get the class name in Swift?
How to get the class name in Swift?
- Subject: How to get the class name in Swift?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 30 Jul 2014 14:02:16 +0700
How to translate this:
NSString *className = [ [ someObject class ] description ];
into Swift?
I want this just for debugging purposes.
I could use:
let objectDesription = "someObject: \(someObject)"
but this often prints much more than I need and care to see.
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden