Top "Nsstring" questions

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

Shortcuts in Objective-C to concatenate NSStrings

Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general? For example, …

objective-c nsstring string-concatenation
Convert UTF-8 encoded NSData to NSString

I have UTF-8 encoded NSData from windows server and I want to convert it to NSString for iPhone. Since data …

ios nsstring nsdata
How do I check if a string contains another string in Swift?

In Objective-C the code to check for a substring in an NSString is: NSString *string = @"hello Swift"; NSRange textRange =[string …

swift string nsstring substring
Constants in Objective-C

I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for my preferences. I …

ios objective-c cocoa nsstring constants
How to convert an NSString into an NSNumber

How can I convert a NSString containing a number of any primitive data type (e.g. int, float, char, unsigned …

objective-c nsstring nsnumber primitive-types
Convert NSDate to NSString

How do I convert, NSDate to NSString so that only the year in @"yyyy" format is output to the string?

objective-c swift nsstring nsdate
How do I test if a string is empty in Objective-C?

How do I test if an NSString is empty in Objective-C?

ios objective-c nsstring
String replacement in Objective-C

How to replace a character is a string in Objective-C?

ios objective-c iphone nsstring
Convert an NSURL to an NSString

I have an app where the user can choose an image either from the built-in app images or from the …

ios objective-c swift nsstring nsurl