Git Product home page Git Product logo

Comments (5)

sberrevoets avatar sberrevoets commented on May 25, 2024

Have you updated to 1.4.1? This was a known problem, but was supposedly got fixed in 1.4.1. If not, please post the code you use to initialize your alert.

from sdcalertview.

kalpesh22m avatar kalpesh22m commented on May 25, 2024

Thanks. After updating to 1.4.1 it is fixed..

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

Great!

from sdcalertview.

kalpesh22m avatar kalpesh22m commented on May 25, 2024

Hi one more query . In my project i am showing UIActionSheet . On action sheet button click method i was trying to show SDCAlertview. It showing properly but after dismissing the alertview , view touch are not working.
Here is my code :

- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
     NSString *buttonTitle = [actionSheet buttonTitleAtIndex:buttonIndex];
    if ([buttonTitle isEqualToString:@"Invite via E-mail"])
   {
    viewTrans.hidden=NO;
    viewMailPopup.hidden=NO;
    }
    else if (![buttonTitle isEqualToString:@"Cancel"])
   {
    //message
   [self inviteViaTextMessage:buttonTitle];
    //[self sendRequestToServer:@"P-Phone"];
     }

 }

 -(void)inviteViaTextMessage:(NSString *)number
  {
    if([MFMessageComposeViewController canSendText])
     {
     }
   else
     {
       if (SYSTEM_VERSION_GREATER_THAN(@"7.0"))
         {
        SDCAlertView *alert = [[SDCAlertView alloc] initWithTitle:@"Failure"
                                                          message:@"Your device doesn't support the message"
                                                         delegate:nil
                                                cancelButtonTitle:@"OK"
                                                otherButtonTitles:nil];
       [alert show];
       }
    else
    {
        ios6AlertView *alert = [[ios6AlertView alloc] initWithTitle:@"Failure"
                                                          message:@"Your device doesn't support the message"
                                                         delegate:nil
                                                cancelButtonTitle:@"OK"
                                                otherButtonTitles:nil];
        [alert show];
    }


    }
}

Thanks in advance

from sdcalertview.

sberrevoets avatar sberrevoets commented on May 25, 2024

Yeah, that's one of the known limitations of SDCAlertView. Both UIActionSheet and SDCAlertView create separate windows, so that goes wrong. See this issue #39, which is basically the same.

Unfortunately, there is no (easy) way to fix that. I'm working on a UIAlertController clone, but it may be a while before that's ready. In the mean time, I'd suggest using a default alert (since it doesn't look like you're using any of the additional features of SDCAlertView).

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.