【发布时间】:2020-06-21 12:51:20
【问题描述】:
我像这样将我的 OData URL 传递给 NSURL
NSURL *url = [[NSURL alloc] initWithString:@"https://localhost/odata/Venues?$expand=Fixtures($filter=day(DateTime) eq 9 and month(DateTime) eq 3 and year(DateTime) eq 2020)&$filter=Fixtures/any(f: day(f/DateTime) eq 9 and month(f/DateTime) eq 3 and year(f/DateTime) eq 2020)"];
NSURL 不接受这个 URL,它正在变为 NULL
当我给出这样的 URL 时
NSURL *url = [[NSURL alloc] initWithString:@"https://google.com"];
那么 NSURL 正在接受 URL...我想知道如何将我的数据 URL 传递给 NSURL。
【问题讨论】:
-
您的网址包含多个必须转义的字符。
标签: objective-c nsurl