2 // UIViewController+Conveniences.h
4 // Created by Mike Mayo on 7/21/10.
7 #import <Foundation/Foundation.h>
9 @class OpenStackRequest;
11 @interface UIViewController (Conveniences) <UIAlertViewDelegate>
13 - (void)alert:(NSString *)title message:(NSString *)message;
14 - (void)alert:(NSString *)message request:(OpenStackRequest *)request;
15 - (void)failOnBadConnection;
17 // presents a modal view controller inside of a UINavigationController
18 // it maintains the central navigation bar of the build
19 - (UINavigationController *)navigationControllerWithRootViewController:(UIViewController *)viewController;
20 - (void)presentModalViewControllerWithNavigation:(UIViewController *)viewController animated:(BOOL)animated;
21 - (void)presentModalViewControllerWithNavigation:(UIViewController *)viewController;
22 - (void)presentPrimaryViewController:(UIViewController *)viewController animated:(BOOL)animated;
23 - (void)presentPrimaryViewController:(UIViewController *)viewController;
24 - (void)addCancelButton;
26 // this requires - (void)saveButtonPressed:(id)sender to be defined
27 - (void)addSaveButton;
29 // this requires - (void)addButtonPressed:(id)sender to be defined
32 // this requires - (void)doneButtonPressed:(id)sender to be defined
33 - (void)addDoneButton;
35 // this requires - (void)nextButtonPressed:(id)sender to be defined
36 - (void)addNextButton;
39 - (UITableViewCell *)tableView:(UITableView *)tableView emptyCellWithImage:(UIImage *)image title:(NSString *)title subtitle:(NSString *)subtitle;
40 - (UITableViewCell *)tableView:(UITableView *)tableView emptyCellWithImage:(UIImage *)image title:(NSString *)title subtitle:(NSString *)subtitle deleteButtonTitle:(NSString *)deleteButtonTitle deleteButtonSelector:(SEL)deleteButtonSelector;