Pinch gesture in QLPreviewController?

Posted by Arne on Stack Overflow See other posts from Stack Overflow or by Arne
Published on 2012-04-07T17:24:36Z Indexed on 2012/04/07 17:30 UTC
Read the original article Hit count: 1059

Filed under:
|
|

I am using the QLPreviewController in my project, but cannot use pinch gestures to zoom in. What do I need to set up first? This is how I create the view controller:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    QLPreviewController *previewer = [[QLPreviewController alloc] init];
    [previewer setDataSource:self];
    [previewer setCurrentPreviewItemIndex:indexPath.row];
    [[self navigationController] pushViewController:previewer animated:YES];
}

© Stack Overflow or respective owner

Related posts about ios

Related posts about cocoa-touch