NSString .... NSString *str1 = @ "STR1"; NSLog (@ "str%@", str1); Nsarray Nsarray *arr1 = @[@ "One", @ "one", @ "three", @ "four", @YES, @ (NO), @1,@ (2)]; NSLog (@ "Count%d", arr1.count); NSLog (@ "Value%@", arr1[4]); Nsmutablearray Nsmutablearray *arr2 = [@[@ "oo", @ "XXX"] mutablecopy]; /*[@[@ (1), @ (2), @ (3), @ (4), @ (5), @ (6), @ (7), @ (8), @ (9), @ (Ten)] mutablecopy] nsmutablearray *arr2 = [@[[@{@] Nam E ": @" Cersei Lannister "@" title ": @" Queen of the Seven kingdoms ", @" Isfavourite ": @NO, @" image ": @" Cersei "} Mutablec Opy], [@{@ "name": @ "Jaime Lannister", @ "title": @ "Kingslayer", @ "Isfavourite": @NO, @ "image": @ "Jaime"} Mutableco PY], [@{@ "name": @ "Joffrey Baratheon", @ "title": @ "the Illborn", @ "Isfavourite": @NO, @ "image": @ "Joffrey"} Mutab Lecopy], [@{@ "name": @ "Tyrion Lannister", @ "title": @ "the Halfman", @ "Isfavourite": @NO, @ "image": @ "Tyrion"} Mut Ablecopy], [@{@ "name": @ "Tywin Lannister", @ "title": @ "Lord of CasterlY Rock "@" Isfavourite ": @NO, @" image ": @" Tywin "} Mutablecopy] [mutablecopy]; */[ARR2 addobject:@ ""]; NSLog (@ "Count%d", arr2.count); NSLog (@ "Value%@", arr2[1]); Nsdictionary nsdictionary *dic1 = @{@ "Key1": @ "value1", @ "Key2": @ "value2"}; NSLog (@ "Count%d", dic1.count); NSLog (@ "Value%@", dic1[@ "Key1"]); Nsmutabledictionary nsmutabledictionary *dic2 = [@{@ "Key1": @ "value1", @ "Key2": @{@ "Key22": @ "Value22" @ "key222": @ " Value222 "}} Mutablecopy]; NSLog (@ "Count%d", dic2.count); NSLog (@ "Value%@", dic2[@ "Key2"][@ "key222"]);
Several quick ways to spell iOS