ios - Lagging ScrollView with UIWebview inside -



ios - Lagging ScrollView with UIWebview inside -

i have uiwebview within uiscrollview lot of content. when content loaded uiwebview big, starts lag.

does know how solve issue? maintain in mind lags when uiwebview's height becomes considerably big.

thank in advance!

if read documentation on uiwebview, states not embed uiwebview uitableview or uiscrollview. doing leads unexpected behaviour, , think experiencing first hand. sorry bearer of bad news.

update - specific warning apple docs:

the documentation addresses issue specifically.

important: should not embed uiwebview or uitableview objects in uiscrollview objects. if so, unexpected behavior can result because touch events 2 objects can mixed , wrongly handled.

apple reference on uiwebview.

update 2:

after doing few searches (search link, same posted in comments), came across this answer, may provide insight. monitors content offset in both uiscrollview , uiwebview via delegates, , clever user utilize of [uiwebview stringbyevaluatingjavascript:]. there few drawbacks though (i.e. links may not work expected). warning, not command internal implementations of either of these classes, , future ios updates may break solution.

ios ipad uiwebview

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -