孤独狗

文章
5
资源
0
加入时间
3年2月3天

数组的valueforkey方法

数组的 valueforkey方法. 苹果的官方解释 Returns an array containing the results of invoking valueForKey: using key on each of the array’s objects.在数组每一个元素上使用valueforkey: 获得的结果以数组形式返回. 也就是说数组会遍历所有元素, 对每一个元素都执行