// // 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