我有一個字符串變化NSURL字符串通過該方法stringByAddingPercentEncodingWithAllowedCharacters
https://www.example.com/abc/Gesture-abc-mobile-app_%257E0177cae9d41f573e5f?source=rss
當我在UIWebView
NSString *str = [[NSString stringWithFormat:@"%@", self.urlStr] stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet];
輸出用這種方法加載變換它在一個地址是:
https://www.example.com/jobs/Gesture-initiated-mobile-app_%257E0177cae9d41f573e5f?source=rss%0A%20%20%20%20%20%20
告訴我爲什麼會發生這種情況...
垃圾進垃圾了嗎? – trojanfoe