Top "Nsstring" questions

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

Remove all but numbers from NSString

I have an NSString (phone number) with some parenthesis and hyphens as some phone numbers are formatted. How would I …

objective-c nsstring
Converting a string to an NSDate

How is it possible to convert a string to an NSDate on iOS?

objective-c cocoa-touch nsstring formatting nsdate
Replacement for deprecated -sizeWithFont:constrainedToSize:lineBreakMode: in iOS 7?

In iOS 7, the method: - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode and the method: - (CGSize)…

ios iphone ios7 nsstring sizewithfont
How to remove first 3 characters from NSString?

I have a string like this "A. rahul VyAs" and i want to remove "A. " and the space after the "…

objective-c nsstring
How to get a single NSString character from an NSString

I want to get a character from somewhere inside an NSString. I want the result to be an NSString. This …

objective-c cocoa-touch nsstring
How to see if an NSString starts with a certain other string?

I am trying to check to see if a string that I am going to use as URL starts with …

ios objective-c iphone nsstring nsmutablestring
Converting between NSData and base64 strings

What is the easiest and fastest code to do a conversion between NSData and a base64 string? I've read a …

ios objective-c nsstring nsdata
Calculating the number of days between two dates in Objective-C

Possible Duplicate: How can I compare two dates, return a number of days I have two dates (as NSString in …

objective-c ios nsstring nsdate
Objective-C 101 (retain vs assign) NSString

A 101 question Let's say i'm making database of cars and each car object is defined as: #import <UIKit/UIKit.…

ios objective-c iphone nsstring retain
sizeWithFont method is deprecated. boundingRectWithSize returns an unexpected value

In iOS7, sizeWithFont is deprecated, so I am using boundingRectWithSize(which returns a CGRect value). My code: UIFont *fontText = [UIFont …

objective-c nsstring ios7 uilabel