Git Product home page Git Product logo

Comments (11)

KrauseFx avatar KrauseFx commented on August 18, 2024

I guess that's a really good idea in the case of the missing network connection. In my apps I'm showing the internet error message whenever the user does anything that requires the internet connection.

from tsmessages.

athanhcong avatar athanhcong commented on August 18, 2024

I need this, too! I want to show some instruction on top of the view. Only dismiss after user have done some task.

from tsmessages.

KrauseFx avatar KrauseFx commented on August 18, 2024

How about passing -1 as duration to show a message with no limited duration which you can manually dismiss in your code? Adding another parameter just for that might be a bit too much. It would be a constant that contains the -1 value.

from tsmessages.

athanhcong avatar athanhcong commented on August 18, 2024

Yeah, good idea!
One more thing is that there is no mechanism to dismiss the view myself if I use TSMessage to showNotification,
It would be great if I can own the View object and show it, like the way I work with UIAlertView:

UIAlertView *alertView = [[UIAlertView alloc] initWith...];
[alertView show];

from tsmessages.

KrauseFx avatar KrauseFx commented on August 18, 2024

Oh yes, there is a way. It's not yet on Cocoapods but on the master branch: e5ab6fc

from tsmessages.

brooly avatar brooly commented on August 18, 2024

Great! Sounds really good

from tsmessages.

athanhcong avatar athanhcong commented on August 18, 2024

Super cool! Thanks 👍

PS: I still like to get the View object, just in case I want to customise it, I do change the font to be suitable with my app :)

from tsmessages.

KrauseFx avatar KrauseFx commented on August 18, 2024

Here we go: 9676944
Take a look at the new example code that shows you how to add this kind of message. Let me know if it works as expected, I'll update the Podspec then.

from tsmessages.

brooly avatar brooly commented on August 18, 2024

Thanks for your support @KrauseFx , I've tested it and works as expected.

from tsmessages.

KrauseFx avatar KrauseFx commented on August 18, 2024

Awesome. I'll create and release the Cocoapods update tomorrow.

from tsmessages.

KrauseFx avatar KrauseFx commented on August 18, 2024

Okay, I released the Cocoapods update. We have to wait until it gets approved by the Cocoapods Team

from tsmessages.

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.