• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to get the class name in Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to get the class name in Swift?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Recognise classes between libraries
  • Next by Date: Re: Recognise classes between libraries
  • Previous by thread: Re: Recognise classes between libraries
  • Next by thread: Re: How to get the class name in Swift?
  • Index(es):
    • Date
    • Thread