Three20 라이브러리의 2.x 호환 분기를 사용하고 있습니다. 이 목적으로 URL을 표시하고 TTStyledTextLabel을 사용하려고합니다. 그것을 사용하려고 할 때TTStyledTextLabel - 인식 할 수없는 선택기 예외
그러나, 나는 (사용자 정의 tableviewcell 내부)에 TTStyledTextLabel 객체를 사용하고 어떻게 이것은
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[TTStyledTextLabel width]: unrecognized selector sent to instance 0x4bc440'
이
TTStyledTextLabel *textLabel = (TTStyledTextLabel *)[cell.contentView viewWithTag:2];
[textLabel setText:[TTStyledText textFromXHTML:myFormattedText lineBreaks:YES urls:YES]];
누군가가 나 이유를 알려 주시기 바랍니다 수있는 예외를 얻을 이 예외가 발생합니까?
감사합니다.
는 듯이 누락에 적용되지 않는 이러한 범주에 대한 자세한 내용이 있습니다. 방금 self.width를 self.frame.size.width로 바꾸 었는데이 문제가 해결 된 것 같습니다. 감사. – lostInTransit