0
응용 프로그램이 있는데 계속 로그 출력을 얻습니다 : "인터페이스 빌더 파일에 알 수없는 클래스의 성분 레이블"이 계속 나타납니다. ... 특정보기를로드 할 때.인터페이스 빌더 파일 (xcode 4.2, iOS 5.0)의 알 수없는 클래스의 성분 표시
성분 라벨은 뷰에서 생성 한 라벨입니다. DetailViewController.h에서
: DetailViewController.m에서
@interface QuickGroceryDetailViewController : UIViewController
{
UILabel *ingredientLabel;
}
@property (strong, nonatomic) IBOutlet UILabel *ingredientLabel;
다음은 관련 코드입니다
이@synthesize ingredientLabel = _detailDescriptionLabel;
- (void)setDetailItem:(id)newDetailItem
{
if (_detailItem != newDetailItem) {
_detailItem = newDetailItem;
// Update the view.
[self configureView];
}
}
- (void)configureView
{
// Update the user interface for the detail item.
if (self.detailItem) {
self.ingredientLabel.text = [self.detailItem description];
}
}
오류가 발생하지, 그리고 응용 프로그램이 잘 실행,하지만 난 이유를 알고 싶어 이 오류는 회선에서 문제가 발생할 수 있기 때문에 발생합니다. 고맙습니다.