You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
optionSelected = -1
// rem display all menu items here
//rem do self-contained main loop
//this will loop endlessly (and render everything on screen!)
//until the user does something
while optionSelected = -1
optionSelected = 0
optionSelected = 1
// do what you need to do now based on optionSelected
if optionSelected = 0
//rem hide menu
//rem end of sub, it will now resume control to the sub that called it
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Warning" message:@"Are you sure to reset the data?"
delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
Login to post a reply