How can I retrieve all the keys (only) from a NSDictionary? I do not need them in any particular order.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
allKeysmethod on yourNSDictionary.From the docs:
allKeys: Returns a new array containing the dictionary’s keys.Return Value
A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries.