Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道此代码之前的 kvc 密钥/密钥路径
[myArray objectAtIndex:i].property
嗯,你可以去的最接近的可能是:
[[myArray valueForKey:@"property"] objectAtIndex:i]
因为数组自己没有实现 KVC,所以他们重新定义它以将键应用于元素并返回结果数组。