BDCustomAlertView is a objective c custom alertview which support toast alert and custom design alert with header title or header image.
- Single button alert
- Double button alert
- Header text / image
- Toast message
#import "BDCustomAlertView.h"
BDCustomAlertView *customAlert = [[BDCustomAlertView alloc] init]; or BDCustomAlertView *customAlert = [BDCustomAlertView instantiateAlert];
[customAlert showAlertWithHeaderImage:[UIImage imageNamed:@"ioslogo.png"] message:@"This is an single button alert example with header image." cancelButtonTitle:@"Dismiss" cancelBlock:^{
}];
[customAlert showAlertWithTitle:@"BDCustomAlertView" message:@"This is an single button alert example with header title." cancelButtonTitle:@"Dismiss" cancelBlock:^{
}];
[customAlert showAlertWithHeaderImage:[UIImage imageNamed:@"ios_logo.png"] message:@"This is an double button alert example with header image." cancelButtonTitle:@"Cancel" successButtonTitle:@"Done" withSuccessBlock:^{
} cancelBlock:^{
}];
[customAlert showAlertWithTitle:@"BDCustomAlertView" message:@"This is an double button alert example with header title." cancelButtonTitle:@"No" successButtonTitle:@"Yes" withSuccessBlock:^{
} cancelBlock:^{
}];
[customAlert showToastWithMessage:@"Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda."];
BDCustomAlert is available under the MIT license. See the LICENSE file for more info.