美文网首页iOS 开发
webView加载中POST

webView加载中POST

作者: 乱世道人 | 来源:发表于2016-06-21 17:56 被阅读0次

示例代码

urlString = [NSString stringWithFormat:@"%@%@",BASEURL,self.uid];

NSURL  * url = [NSURL URLWithString:urlString];

NSString * body = [NSString stringWithFormat:@"token=%@",token];

NSMutableURLRequest * request = [[NSMutableURLRequest alloc] initWithURL:url];

[request setHTTPMethod:@"POST"];

[request setHTTPBody:[body dataUsingEncoding:NSUTF8StringEncoding]];

[webView loadRequest:request];

相关文章

网友评论

    本文标题:webView加载中POST

    本文链接:https://www.haomeiwen.com/subject/kaygdttx.html