Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSString *myString = @" New Profile "
文字列の空白の前と端を削除したい。
これを試してみてください。空白の新しい行も削除されます。
NSString *temp = @" untrimmed string "; NSString *newString = [temp stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];