0

I tried something like this:

var description:String = "Custom Text"
map.userLocation.description = description

or

var description:String = "Custom Text"
map.userLocation.description(description)

But both are wrong, I'm not sure how to do that. Moreover, Apple documentation isn't really helpful about this description method.

Cesare
  • 9,139
  • 16
  • 78
  • 130
theDC
  • 6,364
  • 10
  • 56
  • 98
  • Is this what you are referring to? "The debugger’s print-object command invokes this method to produce a textual description of an object. NSObject's implementation of this method simply prints the name of the class." – David Rönnqvist Jan 26 '15 at 20:58

1 Answers1

2

There is no description property of the userLocation property. In this context, the description method you're seeing is the base one inherited from NSObject, used when you log an object. I believe you want the userLocation's title property.

Jon Shier
  • 12,200
  • 3
  • 35
  • 37