Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXC_BAD_ACCESS using ScrollViews #12

Open
nicorsm opened this issue Jan 28, 2014 · 2 comments
Open

EXC_BAD_ACCESS using ScrollViews #12

nicorsm opened this issue Jan 28, 2014 · 2 comments

Comments

@nicorsm
Copy link

nicorsm commented Jan 28, 2014

Hi,
How can I use DKLiveBlur with UIScrollViews?
I've downloaded it from Cocoapods and I'm using it:


- (void)viewDidLoad
{
    [super viewDidLoad];

    [self buildUI]; //Here I insert graphical elements into UIScrollView - inserted in the UIView via xib

    DKLiveBlurView *backgroundView = [[DKLiveBlurView alloc] initWithFrame:self.scrollView.frame]; 

    backgroundView.originalImage = [UIImage imageNamed:@"Mountain Range.jpg"];
    backgroundView.contentMode = UIViewContentModeScaleAspectFill;
    backgroundView.tableView = self.scrollView;
    backgroundView.isGlassEffectOn = YES;

    // Do any additional setup after loading the view from its nib.
}


The view opens without the image I've set, and when I try to scroll down the view, an EXC_BAD_ACCESS is thrown.
Where I'm wrong?
Ty

Nicola

(ps: excellent library!)

@kronik
Copy link
Owner

kronik commented Jan 29, 2014

Hi Nicola,

  1. Have you seen my demo app?
  2. background view needs to be initialized with self.scrollview.bounds not frame
  3. did you add backgroundView to your main view or scrollview?

Hope this will be helpful.

@nicorsm
Copy link
Author

nicorsm commented Jan 29, 2014

I forgot adding backgroundView to the main view :| Thanks!!

On 29 Jan 2014, at 02:24, Dmitry Klimkin [email protected] wrote:

Hi Nicola,

Have you seen my demo app?
background view needs to be initialized with self.scrollview.bounds not frame
did you add backgroundView to your main view or scrollview?
Hope this will be helpful.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants