NSString转NSUrl:NSString *str = @"www.ngmob.com";
NSURL *URL = [NSURL URLWithString:str];
NSUrl转NSString:NSString *str1 = [URL absoluteString];
NSString转NSUrl:NSString *str = @"www.ngmob.com";
NSURL *URL = [NSURL URLWithString:str];
NSUrl转NSString:NSString *str1 = [URL absoluteString];
本文标题:iOS 中 NSUrl和NSString的相互转化
本文链接:https://www.haomeiwen.com/subject/gysydttx.html
网友评论