How to calculate total size of NSDictionary
object?
i have 3000 StudentClass objects in NSDictionary
with different keys. And i want to calculate total
Might be useful to convert to NSData if your dictionary contains standard classes (eg. NSString) and not custome ones:
NSDictionary *yourdictionary = ...;
NSData * data = [NSPropertyListSerialization dataFromPropertyList:yourdictionary
format:NSPropertyListBinaryFormat_v1_0 errorDescription:NULL];
NSLog(@"size of yourdictionary: %d", [data length]);