I have the following method definition:
- (id)initTestName: (NSString*) name andTime: (int) time, ... {
self = [super init];
if (self) {
_name = name;
_time = time;
//The method goes here
}
return self;
}
Each argument that comes after time is going to be a String. I need to define a method inside the initiator that takes each of the passed arguments (could be any number), and then create an array of String objects where each object is a single String argument. The question "How to create argument methods in Objective C" doesn't show how to create that loop. I really appreciate if you consider that I am very new to coding before you denounce my question and block me from asking anymore.