Here's a handy snippet when inspecting the network response.
println("request:: \(request)")
println("response:: \(response)")
println("data:: \(data)")
println("error:: \(error)")
If you want to print out an object you created, implement the description
. You do need to subclass NSObject
and override
its description
property.
class Thing:NSObject {
var id = 0
override var description:String {
return "My Thing is id:: \(id)"
}
}