문제

When I try to add some string values to a NSMutableArray it shows following exception.

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString addObject:]: unrecognized selector sent to instance

here is my code:

NSMutableArray *pTitle = [[NSMutableArray alloc]init];

code for adding object:

[pTitle addObject:txtTitle.text];

[dataBase setObject:pTitle forKey:@"Title"];

All I need to revoke the NSMutableArray. How can I resolve this... Thanks in advance for your Valuable helps...

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top