NSURL のいろいろ
NSURL をエスケップしなければ、nil になる。
解決策:
mwcstr = [NSURL URLWithString:
[urlstr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
スペース、タブ trim
newsURL = [[news objectForKey:@"url"] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
No comments yet.
Leave a comment