2012-06-21 1 views
0

내 ContentViewController에서 내 ReaderControllerView의 CGPDFPageRef 및 CGPDFDocumentRef에 액세스 할 수 없습니다. 이 같은 내 헤더 파일에 @public 아래를 선언ivar에 액세스 할 수 없습니다. CGPDFPageRef

@interface ReaderContentPage : UIView{ 
    @public 
    CGPDFDocumentRef _PDFDocRef; 
    CGPDFPageRef _PDFPageRef; 

그리고 나는이처럼 액세스하려고 : 그것은 표시되지 않습니다

ReaderControllerView *theReader = [ReaderControllerView alloc]init]; 

theReader._PDFPageRef //OR 
theReader._PDFDocRef 

. 그러나 문제없이 다른 iVars에 액세스 할 수 있습니다. 그래서 정말 두 가지 변수에 액세스 할 수없는 이유가 무엇인지 버그가 있습니다. 누구나 왜 그런지 말할 수 있니? 감사.

답변

1

CGPDFDocumentRef _PDFDocRef; CGPDFPageRef _PDFPageRef이 변수는 ReaderContentPage 클래스에 있고 ReaderControllerView 클래스의 객체를 생성하여 액세스하려고하는 방법은 무엇입니까?

+0

롤 그래, 그가 잘못 입력했거나 틀린 개념을 가지고 있어야합니다 ..! –