I need to remove spaces from the end of a string. How can I do that? Example: if string is "Hello " it must become "Hello" 14 Answers 14
  • May 10, 2022
  • 0 Comments
I want to have a percentage sign in my string after a digit. Something like this: 75%. How can I have this done? I tried: [NSString stringWithFormat:@"%d\%", someDigit]; But...
  • May 5, 2022
  • 0 Comments
I have UTF-8 encoded NSData from windows server and I want to convert it to NSString for iPhone. Since data contains characters (like a degree symbol) which have different...
  • May 1, 2022
  • 0 Comments
How can I convert a NSString containing a number of any primitive data type (e.g. int, float, char, unsigned int, etc.)? The problem is, I don’t know which number...
  • April 30, 2022
  • 0 Comments
I’m developing a Cocoa application, and I’m using constant NSStrings as ways to store key names for my preferences. I understand this is a good idea because it allows...
  • April 15, 2022
  • 0 Comments
Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general? For example, I’d like to make: NSString *myString = @"This"; NSString...
  • April 14, 2022
  • 0 Comments