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

sql - text truncated using perl DBI insert -

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

php - Pass object by reference or value -