objective c - touchXML: stringValue not saved as string? -


        nslog(@"status: %@", [[[xmlelement elementsforname:@"status"] objectatindex:0] stringvalue]);         nsstring *val = [[[xmlelement elementsforname:@"status"] objectatindex:0] stringvalue];         if (val == @"error")         { 

this log 2011-07-02 16:09:40.565 revistero[994:207] status: error

however doesn't enter if

any suggestion?

you should use isequaltostring:

    if ([val isequaltostring:@"error"])     { 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -