Top "Nsstring" questions

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

Split NSString multiple times on the same separator

I am currently receiving a string like this: @"Sam|26,Hannah|22,Adam|30,Carlie|32,Jan|54" And I am splitting it like this: …

objective-c string cocoa-touch cocoa nsstring
Get parts of a NSURL in objective-c

I have an NSString with the value of http://digg.com/news/business/24hr How can I get everything before …

objective-c nsstring nsurl
Collapse sequences of white space into a single character and trim string

Consider the following example: " Hello this is a long string! " I want to convert that to: "Hello this is a …

objective-c ios nsstring
NSString stringWithFormat

I don't know what I am missing here. I am trying to concatenate strings using [NSString stringWithFormat] function. This is …

iphone nsstring stringwithformat
Finding out whether a string is numeric or not

How can we check if a string is made up of numbers only. I am taking out a substring from …

iphone objective-c cocoa-touch ios nsstring
Remove last character of NSString

I've got some trouble 'ere trying to remove the last character of an NSString. I'm kinda newbie in Objective-C and …

objective-c nsstring
UILabel - string as text and links

I have a UILabel whose text I am getting from a server. Some of the text is to be identified …

iphone ios nsstring uilabel
Replacing one character in a string in Objective-C

Hoping somebody can help me out - I would like to replace a certain character in a string and am …

objective-c ios string nsstring
"sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers" warning

I have Constants NSString, that I want to call like: [newString isEqualToString:CONSTANT_STRING]; Any wrong code here? I got …

objective-c nsstring warnings constants
Convert string to float in Objective-C

How do I convert a string to a float in Objective-C? I am trying to multiply a couple of strings …

objective-c nsstring string-conversion