Git Product home page Git Product logo

Comments (11)

sberrevoets avatar sberrevoets commented on May 25, 2024

Details would be helpful. Did you update to the latest version (1.4.1)?

from sdcalertview.

jtthrillson avatar jtthrillson commented on May 25, 2024

After dismissing a SDCAlertView by either button, the app is nonresponsive.
Tested on iPhone 6 Plus iOS 8.

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

Please show me the code that creates the alert

from sdcalertview.

jtthrillson avatar jtthrillson commented on May 25, 2024
    SDCAlertView *alert = [[SDCAlertView alloc] initWithTitle:nil message:@"Abandon Changes?" delegate:nil cancelButtonTitle:@"yes" otherButtonTitles:@"no", nil];
    [alert showWithDismissHandler:^(NSInteger buttonIndex) {
        if (buttonIndex == [alert cancelButtonIndex]) {
            [self.navigationController popViewControllerAnimated:YES];
        }
    }];

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

That looks fine, where is this presented from? A UIActionSheet or UIAlertView by any chance?

from sdcalertview.

jtthrillson avatar jtthrillson commented on May 25, 2024

It's shown from a UIButton action.

from sdcalertview.

jtthrillson avatar jtthrillson commented on May 25, 2024

It seems to work if I change SDCAlertViewCoordinator.m:

  • (void)returnToUserWindow {

    [self.userWindow makeKeyAndVisible];

    self.alertWindow.hidden = YES; //<--Added this line and the windows is removed correctly.

    self.alertWindow = nil;

}

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

Hmm.. That's interesting, and almost tells me it's a bug (or maybe even documented changed behavior) in iOS 8. I'll investigate and get back to you. In the mean time, can you confirm that if you build against iOS 7, you have no problems?

Thanks for bringing this to my attention!

from sdcalertview.

jtthrillson avatar jtthrillson commented on May 25, 2024

No apparent issues in iOS 7 before or after building with that change.

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

I'm trying to replicate this problem, but I can't... I've tried creating a sample project with a navigation controller and a normal UIButton that triggers the alert as you described above, but the app never locks up.

Can you upload a project in which this happens? Thanks!

from sdcalertview.

guoxj avatar guoxj commented on May 25, 2024

after update to lastest. the problem solved. thanks

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.