- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我无法从 ContentViewController 访问 ReaderControllerView 的 CGPDFPageRef 和 CGPDFDocumentRef。我在头文件中的 @public
下声明了它们,如下所示:
@interface ReaderContentPage : UIView{
@public
CGPDFDocumentRef _PDFDocRef;
CGPDFPageRef _PDFPageRef;
我尝试像这样访问它们:
ReaderControllerView *theReader = [ReaderControllerView alloc]init];
theReader._PDFPageRef //OR
theReader._PDFDocRef
它不会显示。不过,我可以毫无问题地访问其他 iVar。所以这真的让我很烦恼为什么我不能访问这两个变量。谁能告诉我为什么?谢谢。
最佳答案
您声明CGPDFDocumentRef _PDFDocRef; CGPDFPageRef _PDFPageRef
ReaderContentPage
中的这些变量类并尝试通过创建 ReaderControllerView
的对象来访问它们类怎么可能?
关于objective-c - 无法访问 ivar CGPDFPageRef,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11135904/
我正在尝试解析一些 PDF 文件以从中获取文本,但我在阅读特殊字符时遇到了一些问题,例如 : Ş ă â ' "和其他字符。 我有下一个运算符: CGPDFOperatorTableSetCallba
我需要将 CGPDFPageRef var 转换为整数,我创建了一个 if 语句来检查 PDF 页面是否小于或大于文件未显示的页面它。 - (id) setUpPDF: (int) pageNumbe
我无法从 ContentViewController 访问 ReaderControllerView 的 CGPDFPageRef 和 CGPDFDocumentRef。我在头文件中的 @public
我想在 Objective-C 中将 PDF 无损转换为光栅图像。为此,不得将 PDF 绘制到上下文中。另外,我需要能够缩放 PDF。有什么想法吗? 最佳答案 通过将 PDF 转换为光栅表示形式,您可
请看下面的代码: NSString *pdfPath = [documentsDirectory stringByAppendingPathComponent:@"test.pdf"]; NSData
我是一名优秀的程序员,十分优秀!