This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <objc/runtime.h> | |
// A key to bind UIAlertView and the controller (could be any unchangeable void*) | |
static const char * const kAlertAssociationKey = "alertKey"; | |
// Action to close the ViewController | |
- (IBAction) handleCancelTap | |
{ | |
WCAlertView *alert = [[WCAlertView alloc] initWithTitle:@"Unsaved Data" message:@"Would you like to save the data to edit or submit later?" delegate:self cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil]; | |
[alert show]; |