私はObjective Cが初めてだと言って始めましょう。
エラーが発生しています
atusMenuApp[24288:303] -[__NSCFConstantString createListItem]: unrecognized selector sent to instance 0x100002450
これが私のコードです:
selector = [NSMutableArray arrayWithObjects: @"nvda", @"aapl", @"goog", nil];
[selector makeObjectsPerformSelector:@selector(createListItem:) withObject:self];
- (void)createListItem:(NSString *)title {
//do some stuff
}
今、私は周りを見回し:
ました. makeObjectsPerformSelector
たぶん、私が見つけたドキュメントを調べた後、の使用をよく理解していません:
Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object.
どんな助けでも素晴らしいでしょう、ありがとう!