Code Monkey home page Code Monkey logo

Comments (22)

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

inb4ohnoes avatar inb4ohnoes commented on August 17, 2024

Thank you. I will play around with this on my end as well.

from cwstatusbarnotification.

BobDG avatar BobDG commented on August 17, 2024

Any progress on this issue? I love your framework but this is stopping me from using it..

from cwstatusbarnotification.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

BobDG avatar BobDG commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

BobDG avatar BobDG commented on August 17, 2024

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.

wowthatsdeep avatar wowthatsdeep commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

BobDG avatar BobDG commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

@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:

cwnotification

from cwstatusbarnotification.

 avatar commented on August 17, 2024

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:

cwnotification

Reply to this email directly or view it on GitHub:
#4 (comment)

from cwstatusbarnotification.

 avatar commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

Merge request to Specs still pending

CocoaPods/Specs#5511

They're usually faster about that.

from cwstatusbarnotification.

 avatar commented on August 17, 2024

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

CocoaPods/Specs#5511

They're usually faster about that.


Reply to this email directly or view it on GitHub.

from cwstatusbarnotification.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

Yes; travis doesn't recognize iOS7-specific APIs, thats why I nudged keithbsmiley in a comment.

from cwstatusbarnotification.

 avatar commented on August 17, 2024

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.

cezarywojcik avatar cezarywojcik commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.