ios - UIWebview content not at top of view -
i have ios 9 screen 2 uiwebviews on it; 2 uiwebviews set same in ib, , each displays html table, same css. 2 views display differently: in top 1 table scrolled down , shows blank area @ top; second 1 displays correctly.
the 2 html tables have gray background show position here. here's view when opens; there table in each of outlined uiwebviews: 
i can manually scroll top view correct position:
i would, of course, top uiwebview present table @ top of view.
any ideas on why top uiwebview scrolls table down when opens? i've seen in several other instances , have not been able figure out why or how correct it.
stonz2's link gave me answer: add automaticallyadjustsscrollviewinsets = false viewcontroller's viewdidload method.

Comments
Post a Comment