Git Product home page Git Product logo

Comments (4)

sberrevoets avatar sberrevoets commented on May 25, 2024

Is this building against the iOS 7 or iOS 8 SDK? If so, please look at some of the recent PRs/issues, your solution may be in there.

If that doesn't solve your problem, please post the code you use to create this alert. Thanks!

from sdcalertview.

jlubeck avatar jlubeck commented on May 25, 2024

Both iOS7 and 8.
Will check what you said and get back to you...

Thanks!


Jan Lübeck
Chief Technology Officer
fyrastudio.com

On Fri, Aug 29, 2014 at 10:02 PM, Scott Berrevoets <[email protected]

wrote:

Is this building against the iOS 7 or iOS 8 SDK? If so, please look at
some of the recent PRs/issues, your solution may be in there.

If that doesn't solve your problem, please post the code you use to create
this alert. Thanks!


Reply to this email directly or view it on GitHub
#48 (comment)
.

from sdcalertview.

jlubeck avatar jlubeck commented on May 25, 2024

Couldn't find a fix neither in PRs nor issues. But I was able to resolve it by using a:

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
alertview code
});

The alert was showing inside

  • (void)viewWillAppear:(BOOL)animated

So I'm guessing it's a matter of showing speed...

Anyway, it's good enough for me, I don't know if you want me to give you more info?

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

Ah, yes, doing that in viewWillAppear: is not a good idea--not even with UIAlertView. viewDidAppear: is a better option if you want to show an alert pretty much immediately after loading a view controller.

from sdcalertview.

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.