Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
- self.overlay = [[UIVisualEffectView alloc] init];
- [self.overlay setFrame:[[UIScreen mainScreen] bounds]];
- CGRect newFrame = [self convertRect:self.bounds toView:self.overlay];
- NSLog(@"newFrame.origin.x: %f", newFrame.origin.x);
- NSLog(@"newFrame.origin.y: %f", newFrame.origin.y);
- self.frame = newFrame;
- NSLog(@"self.frame: %f", self.frame.origin.x);
- NSLog(@"self.frame: %f", self.frame.origin.y);
- [self.overlay.contentView addSubview:self];
- NSLog(@"self.frame: %f", self.frame.origin.x);
- NSLog(@"self.frame: %f", self.frame.origin.y);
- self.frame = newFrame;
- [self.overlay.contentView addSubview:self.dropdown];
- [[[UIApplication sharedApplication] keyWindow] addSubview:self.overlay];
- [UIView animateWithDuration:0.4 animations:^{
- self.overlay.effect = blurEffect;
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement