Latest 2.0.0
Homepage https://github.com/Meniny/MXAlert-in-Objective-C
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Frameworks Foundation, UIKit

MXAlertView-in-Objective-C

MXAlertView is a custom alert view.

Screenshots

image.jpgdetail.jpgabout.jpgpoints.jpginput.jpginquire.jpginfo.jpgloading.jpg

Installation with CocoaPods

pod 'MXAlertView'

Usage

#import "MXAlertView.h"

Sample Code for Custom Allocation:

MXAlertView *alert = [MXAlertView inquireAlert];
[alert setMessage:@"This is a Message"];
[alert setPositiveButton:@"OK" onClickListener:^(MXAlertOperation * _Nonnull alertView, NSString * _Nonnull inputString) {
  if ([inputString length]) {
    NSLog(@"Input: %@", inputString);
  }
  [alertView hide];
}];
[alert setNegativeButton:@"Cancel" onClickListener:^(MXAlertOperation * _Nonnull alertView, NSString * _Nonnull inputString) {
  if ([inputString length]) {
    NSLog(@"Input: %@", inputString);
  }
  [alertView hide];
}];
[alert show];

Latest podspec

{
    "name": "MXAlert",
    "version": "2.0.0",
    "summary": "A custom alert view",
    "description": "The first stable version of MXAlert, a custom alert view",
    "homepage": "https://github.com/Meniny/MXAlert-in-Objective-C",
    "license": "MIT",
    "authors": "Elias Abel",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Meniny/MXAlert-in-Objective-C.git",
        "tag": "2.0.0"
    },
    "source_files": "MXAlert-OC/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "SDWebImage": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This