gpt4 book ai didi

ios - URLWithString : when string contains Arab chars 问题

转载 作者:行者123 更新时间:2023-11-29 11:23:19 26 4
gpt4 key购买 nike

<分区>

当路径包含阿拉伯字符时,我的代码出现问题。在这种情况下,URLWithString 总是返回 nil。

NSString *path = self.currentlySelectedBlogItem.linkUrl;
NSURL *url = [NSURL URLWithString:path];
[[UIApplication sharedApplication] openURL:url];

有什么建议吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com