Giter Site home page Giter Site logo

Comments (6)

sberrevoets avatar sberrevoets commented on May 13, 2024

The convenience methods don't just return an alert, they show an alert and then return it. Once an alert (both UIAlertView and SDCAlertView) is on-screen, it can't be modified, except for the title and message. In your case, I would probably just use the designated initializer and change the style before sending it show.

However, this is still a bug. I don't believe UIAlertView crashes when changing the style after it was already shown. I will do some research and get a fix out soon. Keep in mind though, that even after I fix this, as it will just fail silently (i.e., without crashing).

Thanks for reporting!

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 13, 2024

I'm having a little trouble reproducing this. Can you provide me with the code you were using?

from sdcalertview.

gereons avatar gereons commented on May 13, 2024

Happens here in the sample app, when I change the "Single Text Field" example to

SDCAlertView *alert = [SDCAlertView alertWithTitle:@"Title" message:@"This is a message" buttons:@[@"OK"]];
alert.alertViewStyle = SDCAlertViewStylePlainTextInput;

from sdcalertview.

gereons avatar gereons commented on May 13, 2024

The exception message is

2014-06-18 07:49:48.359 SDCAlertView[3421:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse constraint format:
Unable to interpret '|' character, because the related view doesn't have a superview
V:|[primaryTextField(==primaryTextFieldHeight)]|

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 13, 2024

Yep, I see what you mean. I will fix this at some point, just have to find some time for it. In the meantime, please use the designated initializer instead.

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 13, 2024

See #38 for a more accurate description of the bug. I'm closing this one, keep an eye out for a fix for #38.

Thanks for reporting!

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.