NSString から最初の\n文字を削除するにはどうすればよいですか?
編集: 明確にするために、私がやりたいことは次のとおりです: 文字列の最初の行に \n 文字が含まれている場合は、それを削除します。それ以外の場合は何もしません。
ie: 文字列が次のような場合:
@"\nhello, this is the first line\nthis is the second line"
最初の行に改行を含まない文字列とは対照的です。
@"hello, this is the first line\nthis is the second line."
それがより明確になることを願っています。