이이있는 NSString stringWithFormat은 그 자체로 줄 바꿈을 추가하는이 이유는 무엇
NSString *url = [NSString stringWithFormat:@"http://www.example.com/profile/%@/?s_iphone=true", author];
NSLog(@"url: %@", url);
출력 :
이http://www.example.com/profile/AuthorName
/?s_iphone=true
이 URL이 B를로드하지 않습니다 말할 필요도없이/C 개행 문자가 거기에 추가됩니다 문자열 자체. whitesapces/newlines을 제거하려고 시도했지만 여전히 동일한 출력을 가졌습니다. 그게 날 미친 운전.
매트
위 코드가 호출되기 전에 newline이 있는지'저자 '가 검사 했습니까? – matthias
감사합니다. 잊어 버렸습니다. – MattDice