Top "Nsstring" questions

NSString is the plain-text character-string class in Cocoa and Cocoa Touch.

Objective C: convert a NSMutableString in NSString

I have an NSMutableString, how can I convert it to an NSString?

objective-c nsstring nsmutablestring
Append string with variable

I'm a java guy coming over to Objective-C. In java, to add a variable to a string you'd have to …

objective-c ios xcode nsstring nsmutablestring
Replace occurrences of space in URL

I have a URL in an iPhone application to work with. But the problem is that it has some spaces …

ios objective-c nsstring nsurl
how to check if NSString = a specific string value?

Hi I am woundering if you can check to see if a NSString equals a specific value say for instance …

iphone ios nsstring
Make a two-digit string from a single-digit integer

How can I have a two-digit integer in a a string, even if the integer is less than 10? [NSString stringWithFormat:@"%…

objective-c string cocoa nsstring number-formatting
NSString to NSDate

I got a string that contains the current date by using this : NSString *date = [[NSDate date] description]; At a different …

cocoa nsstring nsdate nsdateformatter
Get last 2 characters of a string?

Say I have a string: NSString *state = @"California, CA"; Can someone please tell me how to extract the last two …

objective-c nsstring
Reverse NSString text

I have been googling so much on how to do this, but how would I reverse a NSString? Ex:hi …

objective-c cocoa nsstring
Convert NSMutableAttributedString to NSString

Can we not convert NSMutableAttributedString to NSString? I have two NSMutableAttributedStrings and I am appending the 2nd string onto 1st …

ios objective-c nsstring uilabel nsmutableattributedstring
How to use printf with NSString

I need to use something like NSLog but without the timestamp and newline character, so I'm using printf. How can …

objective-c cocoa-touch nsstring printf nslog