objective-c - 自己定义了一个数据模型,是dict类型,那么怎么求他的和呢?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-02 09:23:40
0
3
550


提示这个错误

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
某草草

Your mistake is that you called a count method. According to the name, it takes the quantity, but your question asked about summation. I don’t know what you want to do specifically. However, since ProductCategoryDataModel is customized by you, if its parent class does not have a count or sum method, you need to implement the corresponding method yourself before you can call it.

刘奇

If you are counting the number of dictionaries,
somedict.allKeys.count
or
somedict.allValues.count

漂亮男人

What class does

model inherit from?
In addition, you can implement the -count; method by yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template