Tag: nsstring

48 votes
7 answers
2.3K views
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 co

avatar
Royal
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1K views
How do I test if a string is empty in Objective-C?

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

avatar
Deedee
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
496 views
How do I convert an NSString value to NSData?

How do I convert an NSString value to NSData?

avatar
Winford
0 1 0 9
asked 07 September, 2021
61 votes
14 answers
1.3K views
Constants in Objective-C

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

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
56 votes
27 answers
2.7K views
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"; NSRan

avatar
Alphonso
0 1 0 9
asked 07 September, 2021