i am new to iPhone developer,
i want to call constructor manually, how should i call ?
here is my code snippet,
- (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;
}
Thanks In Advance !!
Just use that init method. Example:
And I’d recommend buying some books and reading them, they do help