Comments (22)
The notification label is not seen because it is under the UINavigationBar
. I can remedy this by adding the notification label to the rootViewController
instead of the current view controller.
The main problem, however. once the notification label is visible is that in a UINavigationController
, the UINavigationBar
shrinks and moves up to the top when the status bar disappears. I've tried counteracting the movement, but it looks bad.
I will look into this further.
from cwstatusbarnotification.
Thank you. I will play around with this on my end as well.
from cwstatusbarnotification.
Any progress on this issue? I love your framework but this is stopping me from using it..
from cwstatusbarnotification.
Unfortunately, I've been drowned in school work and haven't had time to look into this more. I posted a question on Apple Developer forums, but haven't gotten a reply yet. I also just posted on Stack Overflow for good measure.
I'll keep you updated.
from cwstatusbarnotification.
I saw the following on SO, perhaps this helps?
—
Sent from Mailbox for iPhone
On Sun, Oct 27, 2013 at 5:59 PM, Cezary Wojcik [email protected]
wrote:
Unfortunately, I've been drowned in school work and haven't had time to look into this more. I posted a question on Apple Developer forums, but haven't gotten a reply yet. I also just posted on Stack Overflow for good measure.
I'll keep you updated.
Reply to this email directly or view it on GitHub:
#4 (comment)
from cwstatusbarnotification.
Whatever you copy/pasted isn't showing up here on GitHub. There was only one comment so far on my SO question, and it suggested using wantsFullScreenLayout
. Unfortunately, that is deprecated in iOS 7.
from cwstatusbarnotification.
Hm I hope it’s solved. I believe what I copy/pasted wasn’t useful anyway after I checked your code. I’ll try on my end some further research.. I found out that the Mailbox App uses screencaptures for their animations, perhaps that’s also something to think about, for me at least..
Bob
Op 27 okt. 2013, om 21:57 heeft Cezary Wojcik [email protected] het volgende geschreven:
Whatever you copy/pasted isn't showing up here on GitHub. There was only one comment so far on my SO question, and it suggested using wantsFullScreenLayout. Unfortunately, that is deprecated in iOS 7.
—
Reply to this email directly or view it on GitHub.
from cwstatusbarnotification.
Please add support for UINavigationController! I love your framework. Tweetbot also got it working, you can see it at the end of the video here: http://tapbots.com/software/tweetbot/
from cwstatusbarnotification.
Yeah, I have tweetbot and saw it working in there. I imagine they have a custom navigation view controller, but I want to get this done without doing that. I'm still loaded with schoolwork, unfortunately. StackOverflow and Apple Dev forums have gotten me nowhere. I might put a bounty on the SO question.
from cwstatusbarnotification.
Good news all!
I was able to figure out how to do it thanks in part to this SO post.
Basically, I had to make a new UIWindow
and put the notification inside that. The code is updated and should be good to go!
from cwstatusbarnotification.
Hi,
I'm sorry but I don't really like the newest implementation. It seems it only drops a new uiview on top of the statusbar while the status bar doesn't disappear anymore at all with the slick animation of the previous version. Is this really what you wanted?
from cwstatusbarnotification.
The animation I was formerly using to hide the status bar was the built-in system's method of hiding the status bar. Doing this, however, is what caused the issue with the UINavigationController
- as it automatically tried to resize itself.
Personally, I actually prefer the new behavior. Especially since the notification comes down at the same time as the status bar used to go up, the status bar animation wasn't visible for very long anyhow.
I guess a potential alternative would be creating a screenshot of the status bar, and animating that while the actual status bar is covered up with yet another image. I'll look into doing that sometime in the future. I was looking into refactoring the entire project to not be a category anyway, and I'll keep your suggestion in mind.
For now, if you weren't using a navigation controller, you can always use a previous version. I apologize that the update wasn't to your liking.
from cwstatusbarnotification.
You don't have to apologize, I still think you're doing a great job! :)
I agree with the screenshot technique, it's exactly what the developers of the 'Mailbox' app have done, I think when I have time I'll also try to create a new framework like that.
Thanks!
—
Sent from Mailbox for iPhone
On Sat, Nov 16, 2013 at 11:20 PM, Cezary Wojcik [email protected]
wrote:
The animation I was formerly using to hide the status bar was the built-in system's method of hiding the status bar. Doing this, however, is what caused the issue with the
UINavigationController
- as it automatically tried to resize itself.
Personally, I actually prefer the new behavior. Especially since the notification comes down at the same time as the status bar used to go up, the status bar animation wasn't visible for very long anyhow.
I guess a potential alternative would be creating a screenshot of the status bar, and animating that while the actual status bar is covered up with yet another image. I'll look into doing that sometime in the future. I was looking into refactoring the entire project to not be a category anyway, and I'll keep your suggestion in mind.For now, if you weren't using a navigation controller, you can always use a previous version. I apologize that the update wasn't to your liking.
Reply to this email directly or view it on GitHub:
#4 (comment)
from cwstatusbarnotification.
@GraafICT I just updated the project to the refactored version I had been working on that uses an object instead of a category to display the notification. There are a wide variety of new animation options and they all animate the status bar as well. Here is a gif that samples the new options:
from cwstatusbarnotification.
Awesome!!! That looks really great, I'm gonna try it out immediately! Thanks!
—
Sent from Mailbox for iPhone
On Sun, Nov 17, 2013 at 9:35 AM, Cezary Wojcik [email protected]
wrote:
@GraafICT I just updated the project to the refactored version I had been working on that uses an object instead of a category to display the notification. There are a wide variety of new animation options and they all animate the status bar as well. Here is a gif that samples the new options:
Reply to this email directly or view it on GitHub:
#4 (comment)
from cwstatusbarnotification.
Hmm, my cocoapod doesn't update, it says only the old versions are available, not 2.0.0? Is the podspec not updated perhaps?
from cwstatusbarnotification.
Merge request to Specs still pending
They're usually faster about that.
from cwstatusbarnotification.
Ah but it says that the build failed... something about tintColor not being a property of uiwindow
Op 17 nov. 2013, om 17:37 heeft Cezary Wojcik [email protected] het volgende geschreven:
Merge request to Specs still pending
They're usually faster about that.
—
Reply to this email directly or view it on GitHub.
from cwstatusbarnotification.
Yes; travis doesn't recognize iOS7-specific APIs, thats why I nudged keithbsmiley in a comment.
from cwstatusbarnotification.
Ah k, sorry, I'll wait patiently :)
Already tried it out by downloading it by the way and it works perfectly!
I added my own method to dismiss it also, I have 1 process where I would like it to stay as long as the process needs it and then dismisses it :)
Op 17 nov. 2013, om 18:06 heeft Cezary Wojcik [email protected] het volgende geschreven:
Yes; travis doesn't recognize iOS7-specific APIs, thats why I nudged keithbsmiley in a comment.
—
Reply to this email directly or view it on GitHub.
from cwstatusbarnotification.
It was just merged to CocoaPods, so you should be good to go.
Included in the merge was an updated version, 2.1.0
, in which I added functions to manually display and dismiss the notification:
[self.notification displayNotificationWithMessage:@"Hello" completion:nil];
// wait until you need to dismiss
[self.notofication dismissNotification];
from cwstatusbarnotification.
Great! Thanks for all the awesome work!
—
Sent from Mailbox for iPhone
On Mon, Nov 18, 2013 at 2:10 AM, Cezary Wojcik [email protected]
wrote:
It was just merged to CocoaPods, so you should be good to go.
Included in the merge was an updated version,2.1.0
, in which I added functions to manually display and dismiss the notification:[self.notification displayNotificationWithMessage:@"Hello" completion:nil]; // wait until you need to dismiss [self.notofication dismissNotification];
Reply to this email directly or view it on GitHub:
#4 (comment)
from cwstatusbarnotification.
Related Issues (20)
- Property "preferredStatusBarStyle" of "UIViewController" has become readonly, leading to crash. HOT 6
- Error : Module file was created by an older version of the compiler; rebuild 'CWStatusBarNotification' and try again: /Users/leela/FASME NATIVE NEW/FASME_NATIVE_NEW/mobile_development/ios_development/FASME_New/fasme_native_development parse/CWStatusBarNotification.framework/Modules/CWStatusBarNotification.swiftmodule/arm.swiftmodule
- Set custom notification height HOT 1
- Extreme CPU usage
- Any thoughts on switching to the "home indicator" area for iPhone X? (screenshot) HOT 48
- iPhone X and Swift 4 support ? HOT 1
- iPhone X navigation bar style with text not centered HOT 6
- Swipe to dismiss
- iOS13 状态栏系统时间把notificationLabel遮挡
- Component not drawing over status bar anymore on iOS 13 HOT 7
- Component not working with UIScene
- Navigation Bar Color being changed HOT 2
- How to push the specified controller ?
- Xcode 8 beta 2 error HOT 10
- Xcode beta 2 issue
- Update latest code on cocoapods HOT 2
- Can you add a new api like this?
- Use of undeclared identifier '_preferredStatusBarStyle' HOT 1
- iOS 10 : XCode 8 : preferredStatusBarStyle HOT 1
- Support Swift 3.0? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cwstatusbarnotification.