I am sitting since a hour on some strange exception. I try to call some method with:
for (int i = 0; i < [[DBElements objectAtIndex:index] count]; i++) {
NSLog(@"selected Element: %@", [[DBElements objectAtIndex:index] objectAtIndex:i]);
[self addElementsToView:dash withString:[[DBElements objectAtIndex:index] objectAtIndex:i] index:index andSubindex:i];
}
the method is of types: - (void) addElementsToView: (UIView *) dash withString: (NSString *) type index:(NSInteger)index andSubindex : (int) i {}
NSLog
shows me:
selected Element: NUMBER so the index stuff is ok. Why I get on the next step the following exception:
[__NSArrayI intValue]: unrecognized selector sent to instance 0x14d44f70 * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI intValue]: unrecognized selector sent to instance 0x14d44f70'
UPDATE: The DBElements is:
( ( NUMBER, LABEL ), LABEL )
index is 0 i is 0. so it shows to NUMBERS of type NSString.