I am trying to learn iOS
, I come from Java
background where we can have lists/arrays of specific classes like
List<String> l = new ArrayList<>();
List<MyClass> l = new ArrayList<>();
Looking at Objective-C
, I can make use of NSArray
class to make immutable
arrays, but how do I specify that this NSArrray
is strictly of type MyClass
?