iPhone HTML5 App Scrolling Question

前端 未结 4 1279
有刺的猬
有刺的猬 2020-12-05 16:32

I don\'t know if this is even possible or what to Google to find it, but like you can add:



        
4条回答
  •  鱼传尺愫
    2020-12-05 16:44

    The solution for previous Cordova Versions is on following post: http://tripleshotsoftware.blogspot.ch/2012/09/stop-uiwebview-bounce-for-cordova-based.html

    change the MainViewController.m (or AppDelegate.m file in older versions of Cordova/Callback/PhoneGap).

    Look for webViewDidFinishLoad, and within that method add the following line:

    [[theWebView.subviews objectAtIndex:0] setBounces:NO];
    

提交回复
热议问题