NSString
.NSString
class is used for strings of characters, the NSNumber
class for different types of numbers such as integer or floating point, and the NSValue
class for other values such as C structures. You can also use any of the primitive types defined by the C language, such as int
, float
or char
.NSArray
, NSSet
, or NSDictionary
, which are each used to collect other Objective-C objects.NSError
class. Your app should plan for errors and decide how best to handle them in order to present the best possible user experience when something goes wrong.doSomething
or doSomethingElse
. It’s not just the capitalization that’s important, though; you should also make sure that your code is as readable as possible, which means that method names should be expressive, but not too verbose.