Top "Nsstring" questions

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

Read a text file line by line in Swift?

I just started learning Swift. I have got my code to read from the text file, and the App displays …

ios arrays swift text nsstring
Check NSString for special characters

I want to check an NSString for special characters, i.e. anything except a-z, A-Z and 0-9. I don't need …

cocoa nsstring special-characters
NSData to display as a string

I am building an iPhone app and stuck with the following: unsigned char hashedChars[32]; CC_SHA256([inputString UTF8String], [inputString …

iphone nsstring nsdata
How to make first letter uppercase in a UILabel?

I'm developing an iPhone app. In a label, I want to show an user's first letter of the name uppercase. …

ios objective-c swift cocoa-touch nsstring
Compare two NSStrings

In my app there is a mechanism that requires that at a certain point two NSStrings will be the same …

cocoa-touch nsstring string-comparison
NSString To NSNumber

So this problem has been perplexing me for way too long. I have a UIAlertView with a textField in it, …

iphone objective-c nsstring int nsnumber
Using NSPredicate to determine if a string equals another string

I have an NSArray of CalEvents returned with the [CalCalendarStore eventPredicateWithStartDate] method. From the events returned, I am trying to …

objective-c nsstring nsarray nspredicate
Case-insensitive NSString comparison

Using this code I am able to compare string values. [elementName isEqualToString: @"Response"] But this compares case-sensitively. Is there a …

string cocoa nsstring case-sensitive
Convert NSTimeInterval to NSString in iPhone?

How to covert the NSTimeInterval to NSString? I have NSTimeInterval today = [[NSDate date] timeIntervalSince1970]; I have to give "today" as …

iphone nsstring nstimeinterval
NSString: isEqual vs. isEqualToString

What is the difference between isEqual: and isEqualToString:? Why are classes adding isEqualTo* methods (isEqualToArray for NSArray, isEqualToData for NSData, ...) …

objective-c iphone cocoa nsstring