mirror of
https://github.com/samsonjs/5by5Browser.git
synced 2026-03-25 09:05:50 +00:00
32 lines
961 B
Objective-C
32 lines
961 B
Objective-C
//
|
|
// UIAlertView+marshmallows.m
|
|
// DatingX
|
|
//
|
|
// Created by Sami Samhuri on 11-08-24.
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "UIAlertView+marshmallows.h"
|
|
#import "UIAlertViewDelegate.h"
|
|
|
|
@implementation UIAlertView (UIAlertView_marshmallows)
|
|
|
|
+ (void) showAlertWithTitle: (NSString *)title message: (NSString *)message
|
|
{
|
|
[[[self alloc] initWithTitle: title
|
|
message: message
|
|
delegate: nil
|
|
cancelButtonTitle: @"OK"
|
|
otherButtonTitles: nil] show];
|
|
}
|
|
|
|
+ (void) confirmWithTitle: (NSString *)title message: (NSString *)message then: (UIAlertViewCallback)callback
|
|
{
|
|
[[[self alloc] initWithTitle: title
|
|
message: message
|
|
delegate: [UIAlertViewDelegate alertViewDelegateWithCallback: callback]
|
|
cancelButtonTitle: @"Cancel"
|
|
otherButtonTitles: @"OK", nil] show];
|
|
}
|
|
|
|
@end
|