English 中文(简体)
zo在网上,利用吗?
原标题:zoom in on a uiwebview by taping?

In Safair mobile you can zoom in by double taping if you have a html page that you display. But if you use a uiwebview and display an image or pdf file you have to pinch open to zoom.

我的问题是:我必须做些什么,在展示形象或pdf档案时,把双管放在一起工作?

Can you make the uiwebview a sub view under a uiscrollview, will you then be able to double tap an zoom? And how would you do that?

问题回答

移动电话的双管线是focus内容。 它将找到<代码>div。 页: 1 这不是仅仅双管齐下。

若要从IDWebview u中取得双管线,就必须将IDWindow分类并使用这种方法,

- (void)sendEvent:(UIEvent *)event {
    NSLog(@"tap detect");
    NSArray *allTouches = [[event allTouches] allObjects];
    UITouch *touch = [[event allTouches] anyObject];
    UIView *touchView = [touch view];

    if (touchView && [touchView isDescendantOfView:urWebview]) {
        //
        // touchesBegan
        //
               if(touch.tapCount==2){
                     //
                // doubletap
                //
               }
       }
}




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签