RNBlurModalView icon indicating copy to clipboard operation
RNBlurModalView copied to clipboard

Screenshot not moving with table view scroll

Open jacobtimm opened this issue 12 years ago • 3 comments

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.

jacobtimm avatar May 15 '13 22:05 jacobtimm

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:

  • (id)initWithParentView:(UIView_)parentView view:(UIView_)view {
    • if (self = [self initWithFrame:CGRectMake(0, 0, parentView.width, parentView.height)]) {
    • if (self = [self initWithFrame:parentView.bounds]){

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 :)

timstudt avatar Jun 29 '13 10:06 timstudt

Facing same problem

brbgyn avatar Oct 09 '14 20:10 brbgyn

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

brbgyn avatar Oct 09 '14 20:10 brbgyn