I need to compare a key object from a div to a string. I access the key object in a for loop:
for (id key in _photosDic) {
...
}
In the loop, I want to compare the key with a string. Do I have to convert the key to a string?
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.
idtype can be anything so the first step would be to check if it is actually aNSStringor not.for that you can use this: