태그가없는 텍스트를 포함하지 않는 경우 확인하는 방법이 있나요
궁금<Description/>
대
<Description> This is text </Description>
디버거를 사용하고 po [TBXML textForElement:groupdescription]
을 입력하면 읽힌 태그가 텍스트가없는 경우 <object returned empty description>
을 반환하고 다른 하나는 완벽하게 작동합니다. 그래서 내 질문은, 어떻게 확인합니까? "GDB에 - 당신이 얻을 것이다"당신이 TBXML 소스를 보면 당신은 "포 @ 할 것입니다 경우에 당신이 그렇게
+ (NSString*) textForElement:(TBXMLElement*)aXMLElement {
if (nil == aXMLElement->text) return @"";
return [NSString stringWithCString:&aXMLElement->text[0] encoding:NSUTF8StringEncoding];
}
,
를 찾을 수
감사
감사합니다. 닌자입니다. – Armand