打印完整URL

if(requestDictionary != nil)

{

//添加参数,将参数拼接在url后面

NSMutableString *paramsString = [NSMutableString string];

NSArray *allkeys = [requestDictionary allKeys];

for (NSString *key in allkeys) {

NSString *value = [requestDictionary objectForKey:key];

[paramsString appendFormat:@"&%@=%@", key, value];

}

NSLog(@"完整URL=%@?%@",url,paramsString);

}

上一篇:hdu 6185 递推+【矩阵快速幂】


下一篇:iOS:练习题中如何用技术去实现一个连线题