0

I would remove the shadow that is visible when you drag up and down on a sheet webview ?. Because I find it

for (int x = 0; x < 10; ++x) { 
   [[[[[maWebView subviews] objectAtIndex:0] subviews] objectAtIndex:x] setHidden:YES]; 
}

but I do not know how adaptader in ruby ​​ruby with motion

(0..10).each do|v|

end

this part of the code or I struggle to put it into ruby with rubymotion

[[[[[maWebView subviews] objectAtIndex:0] subviews] objectAtIndex:x] setHidden:YES];

thanks

user1774481
  • 193
  • 3
  • 12
  • in case if a person wants to do the same @web_view.subviews[0].subviews.each do|v| if v.isKindOfClass(UIImageView) v.setHidden(true) end end – user1774481 Feb 06 '14 at 18:40

1 Answers1

0

Try with something like:

maWebView.subviews[0].subviews.each {|view| view.setHidden(true)}

Or, if you really want to take only views from index 0 to 9:

(0...10).each{|x| maWebView.subviews[0].subviews[x].setHidden(true)}
Riccardo Marotti
  • 20,218
  • 7
  • 70
  • 53
  • it works a little closer, because deletes me all my views and I would just deleted the shadow of the webview. how? and what it can do? – user1774481 Feb 06 '14 at 18:18
  • [This](http://stackoverflow.com/questions/1074320/remove-uiwebview-shadow), and [this](http://stackoverflow.com/questions/3009063/remove-gradient-background-from-uiwebview), maybe, can help you. – Riccardo Marotti Feb 07 '14 at 14:15