Git Product home page Git Product logo

mtblockalertview's People

Contributors

kilink avatar pitiphong-p avatar pwightman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mtblockalertview's Issues

iOS 5.0 compatibility

Is there a reason the podspec specifies a minimum iOS version of 5.1? Glancing at the code, I don't see anything that wouldn't be supported by iOS 5.0.

MTBlockAlertView Convenience Methods cause ucol_getVersion bad_access

Temporary solved by calling MTBlockAlertView in async way:

+ (void) showWithTitle:(NSString *)title
               message:(NSString *)message
     cancelButtonTitle:(NSString *)cancelButtonTitle
      otherButtonTitle:(NSString *)otherButtonTitle
        alertViewStyle:(UIAlertViewStyle)alertViewStyle
       completionBlock:(void (^)(UIAlertView *alertView, NSInteger buttonIndex))completionBlock {


    dispatch_async(dispatch_get_main_queue(), ^{
        MTBlockAlertView *alertView = [[MTBlockAlertView alloc] initWithTitle:title
                                                                      message:message
                                                            completionHanlder:completionBlock
                                                            cancelButtonTitle:cancelButtonTitle
                                                            otherButtonTitles:otherButtonTitle, nil];

        alertView.alertViewStyle = alertViewStyle;
        [alertView show];
    });
}

I don't know if it is a good way to solve it, but at least it works.

Environment:
iOS6 on iphone 4

Support return instance

Hi, this is great library, all of my projects are using this alert view!
Can we have return instance so that we can set the alert's property ?

MTBlockAlertView* alertView = [MTBlockAlertView showWithTitle ... ];

UITextField *username = [alertView textFieldAtIndex:0];
username.placeholder = @"Enter user name";
...

Many thanks!

Documentation bug

In the README, the section called "A little more control" shows a code sample. In the sample, the completion block should only have one parameter, not two.

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.