我从XML获取值,然后当我使用mystring等于我拥有的值时,它不起作用

时间:2017-07-03 10:51:39

标签: objective-c string nsstring

嗨,当我从XML获取值时:

<settings>
  <setting name='Conference Number' value='#159' />
</settings>
然后我写道:

 NSString *textType = [content substringToIndex:46];

当我打印时:

    NSLog(@"print here the textType%@", textType);

it prints : print here the textType<settings>
  <setting name='Conference Number'

这就是我想要的,但当我说:

 if ([textType  isEqual: @"<setting name='Conference Number'"]){
        // Do something


    }

它不起作用,任何帮助欣赏

0 个答案:

没有答案