How would I detect if an array displays the following in an if statement? (I tried NULL and it didn’t work)…
When I NSLog the description of the array, this is what returns:
NSLog(@"%@", [manager purDesc]description]);
2011-08-30 13:43:20.227 PROJECT[2921:f503] manager purDesc Dump:(
{
amt = "\n ";
desc = "\n ";
}
)
I need to say “If [manager purDesc] looks like that, display a UIAlertView“.
Sorry everyone, I feel like I’m having trouble getting my point across this morning. If you don’t understand, please comment with your question and I’ll try to explain better.
Actually, your structure seems to be a dictionary inside an array. Not sure how that all stacks up. To see if all items in a dictionary are only whitespace.
the array version is left as an exercise to the reader. 🙂