You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!)
The text was updated successfully, but these errors were encountered:
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.
Hi,
How can I use DKLiveBlur with UIScrollViews?
I've downloaded it from Cocoapods and I'm using it:
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!)
The text was updated successfully, but these errors were encountered: