Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Solution 1</h2> <p>Hide the UIWebViews when they begin loading a page and show them when they finish via the UIWebView's delegate (<a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UIWebViewDelegate" rel="nofollow"><code>UIWebViewDelegate</code></a>).</p> <p>In <a href="http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIWebViewDelegate/webViewDidStartLoad%3a" rel="nofollow"><code>webViewDidStartLoad:</code></a> hide the UIWebView (i.e. <code>myWebView.hidden = YES;</code>). In <a href="http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIWebViewDelegate/webViewDidFinishLoad%3a" rel="nofollow"><code>webViewDidFinishLoad:</code></a> show it again.</p> <p>It may be better to hide the webView elsewhere in your code, but showing it in the webViewDidFinishLoad: is a good idea. You'll also want a background for the scrollview since you'll see behind the UIWebView's using this method.</p> <h2>Solution 2</h2> <p>Change the UIScrollView's <a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/doc/uid/TP40006922-CH3-SW44" rel="nofollow"><code>decelerationRate</code></a></p> <blockquote> <p><strong>decelerationRate</strong></p> <p>A floating-point value that determines the rate of deceleration after the user lifts their finger.</p> </blockquote> <pre><code>@property(nonatomic) float decelerationRate </code></pre> <blockquote> <p><strong>Discussion</strong></p> <p>Your application can use the UIScrollViewDecelerationRateNormal and UIScrollViewDecelerationRateFast constants as reference points for reasonable deceleration rates.</p> <p><strong>Availability</strong></p> <p>Available in iOS 3.0 and later.</p> <p><strong>Declared In</strong></p> <p>UIScrollView.h</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload