I'm trying to access department and course information for an iOS app for students to buy/sell textbooks.
Right now I have two pickerViews. I'd like to select the department in one and have the relevant courses load into the second. What kind of call can I make to get an array of just the department names when structured as below?
So here I would want to access an array ["AHSS", "AIE", "ANTH"]
. Then afterwards, I'd make another call depending on the selection. For AIE
, I'd want the array ["330", "340"]
.
I'm unsure how I can just get the directory names as an array and not the values they eventually lead to?