Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (35 sloc) 1.354 kb
//
// UIAlertView+marshmallows.m
// DatingX
//
// Created by Sami Samhuri on 11-08-24.
// Copyright 2011 Sami Samhuri. 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] autorelease] show];
}
+ (void) confirmWithTitle: (NSString *)title message: (NSString *)message then: (UIAlertViewCallback)callback
{
[self confirmWithTitle: title message: message cancelTitle: @"Cancel" okTitle: @"OK" then: callback];
}
+ (void) confirmWithTitle: (NSString *)title
message: (NSString *)message
cancelTitle: (NSString *)cancelTitle
okTitle: (NSString *)okTitle
then: (UIAlertViewCallback)callback
{
[[[[self alloc] initWithTitle: title
message: message
delegate: [UIAlertViewDelegate alertViewDelegateWithCallback: callback]
cancelButtonTitle: cancelTitle
otherButtonTitles: okTitle, nil] autorelease] show];
}
@end
Jump to Line
Something went wrong with that request. Please try again.