How to calculate total size of NSDictionary object?

后端 未结 4 1210
离开以前
离开以前 2021-02-09 06:14

How to calculate total size of NSDictionary object? i have 3000 StudentClass objects in NSDictionary with different keys. And i want to calculate total

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 06:38

    The best way to calculate the size of big NSDictionary, I think, would be converting it to NSData and get the size of the data. Good Luck!

提交回复
热议问题