NSURLRequest to NSString

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

how can i convert NSURLRequest to NSString ?

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 01:39

    - (NSString*) urlRequestToString:(NSURLRequest*)urlRequest
    {
      NSString *requestPath = [[urlRequest URL] absoluteString];
      return requestPath;
    }
    

提交回复
热议问题