comparison iViewController.mm @ 14:6a9191f5b269

Questionnaire view started function basic
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 16 Jan 2013 19:03:51 +0000
parents 346807b47860
children e45c3e631d20
comparison
equal deleted inserted replaced
13:3381c8bf4186 14:6a9191f5b269
42 alertTextField.keyboardType = UIKeyboardTypeDefault; 42 alertTextField.keyboardType = UIKeyboardTypeDefault;
43 alertTextField.placeholder = @"Preset Name"; 43 alertTextField.placeholder = @"Preset Name";
44 [alert show]; 44 [alert show];
45 [alert release]; 45 [alert release];
46 } 46 }
47 47 /*
48 - (void)showQuestionPrompt:(NSString *)question{ 48 - (void)showQuestionPrompt:(NSString *)question{
49 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Save" 49 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Save"
50 message:@"Are you mad?" 50 message:@"Are you mad?"
51 delegate:self 51 delegate:self
52 cancelButtonTitle:@"Next" 52 cancelButtonTitle:@"Next"
53 otherButtonTitles:@"Hell No",nil]; 53 otherButtonTitles:@"Hell No",nil];
54 alert.alertViewStyle = UIAlertViewStyleDefault; 54 alert.alertViewStyle = UIAlertViewStyleDefault;
55 [alert show]; 55 [alert show];
56 [alert release]; 56 [alert release];
57 } 57 }
58 */
58 59
59 // shheet - only one delegate fnc 60 // shheet - only one delegate fnc
60 // we're actually overriding alertViews function here? 61 // we're actually overriding alertViews function here?
61 62
62 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ 63 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{