how to check if variable is NSArray or NSMutableArray in Objective C

0 votes
160 views
asked Jul 23, 2013 by BasicQuestion (1,355 points)
Hi

    how to check if variable is NSArray or NSMutableArray

1 Answer

+1 vote
answered Jul 23, 2013 by admin (8,095 points)

Hi basic

    Try this code [myUnknownArray isKindOfClass:[NSMutableArray class]];

commented Jul 30, 2013 by kalpana (3,995 points)
Thanks a lot.. Im new to objective c.. And i can find gud solutions for the basic level questions which helps objective C beginners...
...