Objective C Basic Types by Example
The basic types available C are listed.
- int - for storing whole numbers like 1,2,3 -1, 34.
- float - for storing decimal numbers.
- double - for storing decimal numbers with double precision.
- char - for storing single character.
Objective-C has all the types available in C.
Objective C basic types
The list of commonly used Objective C specific types are listed below.
- NSInteger - for storing whole numbers like 1,2,3 -1, 34.
- CGfloat - for storing decimal numbers.
- BOOL - for storing YES or NO.
- NSNumber - for storing decimal numbers with double precision.
- NSString - for storing group of characters(string).
- NSMutableString - for storing mutable group of characters(string).
- NSDictionary - for storing key value pairs.
- NSMutableDictionary - for storing mutable key value pairs(can be modified).
- NSArray - for storing array of objects.
- NSMutableArray - for storing mutable array of objects.
- NSSet - for storing set.
- NSMutableset - for storing mutable set.
- NSCountedSet - for storing counted set.
- NSOrderedSet - for storing ordered set.
- NSDate - for storing date.