rnystrom / RNBlurModalView

Add depth to your alerts.
MIT License
830 stars 143 forks source link

Screenshot not moving with table view scroll #14

Open jacobtimm opened 11 years ago

jacobtimm commented 11 years ago

When you show the modal in a table view it works fine if no scrolling has happened yet. If the user scrolls it begins to blur a smaller and smaller portion of the screen.

timstudt commented 11 years ago

ios simulator screen shot jun 29 2013 12 46 58 pm I am also trying to show a view (UICollectionView) on top of a table view. More precise it should show over visible part of scroll view. Currently modal view is init with frame origin (0,0).

I changed frame of modal view to:

This works the modal view is always shown over visible frame of table view. however when i scroll down to the last table cell and show the modal view there, the dismissButton is shown correctly but triggers no action.

from debugger: (lldb) po _dismissButton $0 = 0x1bba21c0 <RNCloseButton: 0x1bba21c0; baseClass = UIButton; frame = (4 359.5; 32 32); opaque = NO; layer = <CALayer: 0x1bb74ec0>> (lldb) po _dismissButton.superview $1 = 0x1bb448a0 <RNBlurModalView: 0x1bb448a0; frame = (0 357; 320 367); alpha = 0; autoresize = LM+W+TM+H; layer = <CALayer: 0x1bba17a0>> (lldb)

Any idea how to setup modal view correctly in scroll view?

Fix very much appreciated :)

brbgyn commented 10 years ago

Facing same problem

brbgyn commented 10 years ago

Have you managed to click on the dismissButton successfully, @timstudt or @jacobtimm ?