嗨,当我从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
}
它不起作用,任何帮助欣赏