Hey. I have an array that stores several nsDictionary (there are different numbers of them), it looks like this:
[{ BTmac = "123"; DeviceModel = "BBB"; DeviceType = 1; ID = 1; ST = 3; }, { BTmac = "123"; DeviceModel = "BBB"; DeviceType = 1; ID = 2; ST = 5; }, { BTmac = "123"; DeviceModel = "NNN"; DeviceType = 0; ID = 3; ST = 5; }] I need to collect the key ID values from all the dikshins into separate two arrays (there may be different numbers, both 1 and 100), if DeviceType = 1 , then in the first array, if DeviceType = 0 then in the second, what would be like this: first = [1,2] second = [3]
Thank.