i load html form in uiwebview , happens uiwebview starts middle of view , extends. have lock webview scrolling , put on top of scrollview allow scrolling. webview shouldn't scroll internally. have tried
[[webview.subviews objectatindex:0] setscrollenabled:no]; but not able stop webview scrolling internally when load form in has textfields clicking on brings keyboard. when load plaintext, able desired behavior. want stop webview autoscrolling , handle scrolling myself using scrollview lay beneath webview. might not make sense of reinventing wheel requirement such.
can suggest do?
you can try,
for (id subview in webview.subviews) if ([[subview class] issubclassofclass: [uiscrollview class]]) if([subview respondstoselector:@selector(setscrollingenabled:)]) [subview performselector:@selector(setscrollingenabled:) withobject:no]; or need stop bouncing of webview can try this.
for (id subview in webview.subviews) if ([[subview class] issubclassofclass: [uiscrollview class]]) ((uiscrollview *)subview).bounces = no; hope helps.
Comments
Post a Comment