NSString 转NSURL的时候会出现NSURL为空

来源:互联网 发布:php保留两位小数 编辑:程序博客网 时间:2024/05/07 15:49

解决方案:xcode7.1.1

    NSMutableURLRequest *mRequest=[[NSMutableURLRequestalloc] initWithURL:[NSURLURLWithString:[strUrl stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSetURLQueryAllowedCharacterSet]]]];



0 0
原创粉丝点击