Question

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

Was it helpful?

Solution

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)}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top