rnystrom / rnblurmodalview Goto Github PK
View Code? Open in Web Editor NEWAdd depth to your alerts.
License: MIT License
Add depth to your alerts.
License: MIT License
I’ve recently added RNBlurModalView to the CocoaPods package manager repo.
CocoaPods is a tool for managing dependencies for OSX and iOS Xcode projects and provides a central repository for iOS/OSX libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.
However, RNBlurModalView doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.
Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.
In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:
$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags
you forgot semicolon after free(pixelBuffer2)
Hi,
would be nice to hide the dismiss Button.
greetz
For iPhone6 and iPhone6P, the view that blur view show in has a zoom animation, how to cancel this zoom scale?
Need to update the Pod Specs in order to be able to use the latest changes via Cocoa Pods.
When I show popview in Portrait and rotate iPad modal animates to the center of screen, but when show in lanscape popview is not on center.
Thanks for posting your RNBlurModalView
, very helpful!
The view will be updated after rotation finished(UIApplicationDidChangeStatusBarOrientationNotification
), so the animation seems to jump a little bit.
I know the reason to postpone the update operation to the time when rotation finished is to re-generate the blur view (RNBlurView
), but any idea to make it not so sharp? Thanks!
i want to change the dismissbutton style but ,how can i do
Hi, I call the RNBlurModalView on my viewDidLoad when the user is offline. It works fine on all views (they are pushed views), except for 1 modal view. The RNBlurModalView does not show on that presented view, but when I dismiss the view, the BlurModal is there, and cannot be dismissed. I tried presenting the RNBlur after a 5-second delay on viewDidLoad, but the behavior remains the same. Am I missing something?
I have a big text and don't want to reduce the font.
I am using the following code to present my UITableView as a modal.
MusicViewController *MusicVC =[[MusicViewController alloc] initWithNibName:nil bundle:nil];
RNBlurModalView *modal;
modal = [[RNBlurModalView alloc] initWithView:MusicVC.view];
[modal show];
modal.isNavigationStyle = YES;
The MusicVC gets presented without any issues and i get a nice blur effect in the background . However when i scroll up and down the MusicVC tableview cells I get a crash. Any help much appreciated.
Below is how my viewDidLoad looks like
(void)viewDidLoad
{
[super viewDidLoad];
self.music_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) style:UITableViewStylePlain];
self.music_tableView.delegate = self;
self.music_tableView.dataSource = self;
self.music_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.music_tableView.scrollEnabled = YES;
self.music_tableView.backgroundColor = [UIColor clearColor];
[self.music_tableView setContentInset:UIEdgeInsetsMake(64.0f,0.0f,44.0f,0.0f)];
[self.view addSubview:music_tableView];
[self getMediaResults:passed_performer_id];
}
RNBlurModalView appears to be ignoring the frame positioning I am giving to the view I am passing to BlurModal. This happens on iPad and is mostly an issue when in landscape.
To fix the compiler warning line 706, just add (img)) after CGImageGetBitmapInfo and you will remove the warning "Implicit conversion..."
// Update to fix iOS 7 warning
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef ctx = CGBitmapContextCreate(outBuffer.data,
outBuffer.width,
outBuffer.height,
8,
outBuffer.rowBytes,
colorSpace,
CGImageGetBitmapInfo(img));
CGImageRef imageRef = CGBitmapContextCreateImage (ctx);
UIImage *returnImage = [UIImage imageWithCGImage:imageRef];
-(UIImage *)boxblurImageWithBlur:(CGFloat)
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.
When the view is hidden then the app rotated the whole screen gets covered in a blurred view with no alert on it. Everything behind the blur is working. I'm needing to nil the BlurModal view after I hide it to stop this happening.
Hi there,
I just tried to put your RNBlurModalView into my project, so I can play a bit with it. Unfortunatelly it produced error:
great library !
if the modal view is triggered in tableview controller when not on top of the table, it shows weird artifact. the label is not entered and the blur is not covering whole tableview.
There's a literal error in:
free(pixelBuffer2)
Need to put semicolon at the end.
Why all these pull requests have not been menages yet? No commit for long time.
Let me know.
Thank you.
Hi there, and thanks for a nifty component.
I am using the following code to present a custom view :
AproposView *apropos = [[AproposView alloc] initWithNibName:@"AproposView" bundle:nil];
RNBlurModal *blurModal = [[RNBlurModalView alloc] initWithViewController:self view:apropos.view];
[blurModal show];
In the AproposView, I have a button, which when I press generates an EXC_BAD_ACCESS message. I also tried other methods such as putting a tapgesture on an UIImageView but the result was the same.
Any pointers appreciated !
I have encountered issues when I use a UIScrollView as a parent view
Hi,
i want to use RNBlurModalView in my project.
But i couldn't compile it because i got error below.
"_vImageBoxConvolve_ARGB8888", referenced from:
-[UIImage(Blur) boxblurImageWithBlur:] in RNBlurModalView.o
My project also contains another library for Twitter + OAuth and i am not sure is that error depend this library but Xcode fails while trying to compile that folder.
My project targets IOS 4.3
I use the library to show a modal view with buttons inside. If any of the buttons is clicked, it will dismiss the RNBlurModalView (by calling [modalView hide]) and show a standard modal view. After dismissing the standard modal view, the parent view is being shown. but when I display another standard modal view from the same parent view and dismiss it, the whole parent view becomes blurred.
Is there anyone out there facing this issue?
First of all, awesome controller, great work.
I'm facing a problem when using it, the modal displaying with a white background, I've added it to a cocos2d project and used it like this
modal = [[RNBlurModalView alloc] initWithView:view];
[modal show];
What is the problem!?
I am trying to smoothen the Blurred backround by modifying the "kRNBlurViewMaxAlpha" value inorder to make the background elements clearly visible .... but am unable to overwrite it... Can you please help me out for overwriting "kRNBlurViewMaxAlpha" constants value..
Hi there
Thank you for a fantastic framework, it works great!
One question though, can you show an example of how to use the showWithDuration and hideWithDuration options?
Thanks,
Ash
My explanation texts can be very long. At this time, the popup window does not exceed in the the screen. How can I solve this problem?
Thanks
It tells you whether the animation completes, as in, it may be forced to end early and it's letting you know that. But you STILL want to do all the post-animation stuff. Remove the guard with finished.
The 1st one is: I'm adding some buttons to the RNBlurModalView... Some of them, from the middle of the screen to the left are normally touchable... The other ones, from the middle to the right are not receiving the touch. It seems that when I touch them, I'm actually touching what is behing, on the parent viewcontroller... How to solve this?
Also, the 2nd one: How can I know when the RNBlurModalView is closed? is there a delegate method? I want to execute some stuff on the parent viewcontroller when the RNBlurModalView is closed. How to do that?
thank you so much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.