私はiPhone開発者に不慣れです、
コンストラクターを手動で呼び出したいのですが、どのように呼び出す必要がありますか?
これが私のコードスニペットです、
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("ePubTutorial.epub"), NULL, NULL);
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
self.pageNumber = 1;
self.backgroundColor = nil;
self.opaque = NO;
self.userInteractionEnabled = NO;
}
return self;
}
前もって感謝します !!