if i have an class with two properties "a" and "b" and i have an array of these class instances. What is the best way to create an array of only only "a" elements.
The simplest way is Key-Value Coding:
[yourArray valueForKey:@"a"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With