NSURLRequest to NSString

前端 未结 5 1848
渐次进展
渐次进展 2021-02-19 01:03

how can i convert NSURLRequest to NSString ?

5条回答
  •  粉色の甜心
    2021-02-19 01:37

    Depends on the information you want in the string. Do you want to have it contain all the values of the instance variables in the object? If so, you're going to need to write your own method that does that. Perhaps subclass NSURLRequest and override description. You could also use reflection to get at all the private ivars and print everything out from another class.

    Or just use a debugger to inspect the values.

提交回复
热议问题