Top "Nsstring" questions

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

Remove characters in NSCharacterSet from NSString

I have an NSCharacterSet which contains all the characters I want to remove from my NSString. How can I do …

objective-c nsstring nscharacterset
How to limit characters in UITextView iOS

I have a UITextView and i would like to limit the number of characters a user can input. i have …

ios objective-c nsstring uitextview nsinteger
Adding multiple strings to a string

How do I add multiple strings to a string ? Whats the easiest way to do that ? If I don't want …

xcode uitableview nsstring mfmailcomposeviewcontroller nsmutablestring
How does localizedStringWithFormat work?

Please note I am not asking about NSLocalizedString() the macro. I am asking about the NSString class function + (instancetype)localizedStringWithFormat:(…

ios objective-c nsstring nslocalizedstring stringwithformat
NSString stringWithFormat Percent Sign

I searched and could not find this answer... If I have this, how can I get it to display the …

nsstring stringwithformat
How to strip special characters out of string?

I have a set with the characters I allow in my string: var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLKMNOPQRSTUVWXYZ") I want …

regex string swift nsstring nscharacterset
How to "pass on" a variable number of arguments to NSString's +stringWithFormat:

I would like to write a function in Objective-C such as the one below, that takes a variable number of …

iphone objective-c cocoa nsstring variadic-functions
Objective-C: -[NSString wordCount]

What's a simple implementation of the following NSString category method that returns the number of words in self, where words …

objective-c nsstring word-count
NSSet with NSStrings containstObject not return YES when it should

I'm loading a dictionary (list of word, not the class) into a NSSet as NSStrings. I then repeatedly send this …

objective-c nsstring nsset