@Pierre
Thanks
I did the following :
@implementation UIViewTouch
. . .
- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view
{
// DO SOMETHING
return NO;
}
In the view controller implementation:
-(void)viewDidLoad
{
CGRect frame = CGRectMake(0, 0, 500, 1000);
UIViewTouch *viewTouch = [[UIViewTouch alloc]initWithFrame:frame];
NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"page1" ofType:@"pdf"];
NSURL *url = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[viewTouch loadRequest:requestObj]; [self.view addSubview:viewTouch];
}