NSURL与NSString之间的转换:
NSURL转NSString使用属性absoluteString str = url.absoluteString;
NSString 转 NSURL: url = [NSURL URLWithString str];
NSData与NSString之间的装换
NSString 转 NSData:data = [str dataUsingEncoding:NSUTF8StringEncoding];